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.booleantoString()voidMethods inherited from class org.jruby.ir.operands.ImmutableLiteral
addUsedVariables, cachedObject, canCopyPropagate, cloneForInlining, hasKnownValue, isCached, retrieveMethods inherited from class org.jruby.ir.operands.Operand
encode, getSimplifiedOperand, getValue, isTruthyImmediate
-
Constructor Details
-
Nil
public Nil()
-
-
Method Details
-
getOperandType
- Specified by:
getOperandTypein classOperand
-
toString
-
createCacheObject
Description copied from class:ImmutableLiteralImplementing class is responsible for constructing the cached value.- Specified by:
createCacheObjectin classImmutableLiteral
-
visit
-
isFalseyImmediate
public boolean isFalseyImmediate()- Overrides:
isFalseyImmediatein classOperand
-