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, retrievefetchCompileTimeArrayElement, getSimplifiedOperand, getValuepublic Object createCacheObject(ThreadContext context)
ImmutableLiteralcreateCacheObject in class ImmutableLiteralpublic boolean isTrue()
public boolean isFalse()
Copyright © 2001–2024 JRuby. All rights reserved.