Package org.jruby.ir.operands
Class Nil
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.ImmutableLiteral
org.jruby.ir.operands.Nil
- Direct Known Subclasses:
UnexecutableNil
Represents nil.
Note: We used to protect the constructor, but since manager is the new
way I got lazy and removed protected.
-
Field Summary
Fields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCacheObject
(ThreadContext context) Implementing class is responsible for constructing the cached value.boolean
toString()
void
Methods inherited from class org.jruby.ir.operands.ImmutableLiteral
addUsedVariables, cachedObject, canCopyPropagate, cloneForInlining, hasKnownValue, isCached, retrieve
Methods inherited from class org.jruby.ir.operands.Operand
encode, getSimplifiedOperand, getValue, isTruthyImmediate
-
Constructor Details
-
Nil
public Nil()
-
-
Method Details
-
getOperandType
- Specified by:
getOperandType
in classOperand
-
toString
-
createCacheObject
Description copied from class:ImmutableLiteral
Implementing class is responsible for constructing the cached value.- Specified by:
createCacheObject
in classImmutableLiteral
-
visit
-
isFalseyImmediate
public boolean isFalseyImmediate()- Overrides:
isFalseyImmediate
in classOperand
-