public class BooleanLiteral extends ImmutableLiteral
EMPTY_ARRAY
Constructor and Description |
---|
BooleanLiteral(boolean truthy) |
Modifier and Type | Method and Description |
---|---|
Object |
createCacheObject(ThreadContext context)
Implementing class is responsible for constructing the cached value.
|
boolean |
isFalse() |
boolean |
isTrue() |
String |
toString() |
void |
visit(IRVisitor visitor) |
addUsedVariables, cachedObject, canCopyPropagate, cloneForInlining, hasKnownValue, isCached, retrieve
fetchCompileTimeArrayElement, getSimplifiedOperand, getValue
public Object createCacheObject(ThreadContext context)
ImmutableLiteral
createCacheObject
in class ImmutableLiteral
public boolean isTrue()
public boolean isFalse()
Copyright © 2001-2014 JRuby. All Rights Reserved.