Top Description Constructors Methods
org.jruby.ir.operands

public Class Nil

extends ImmutableLiteral
Class Inheritance
Known Direct Subclasses
org.jruby.ir.operands.UnexecutableNil
Imports
org.jruby.ir.IRVisitor, org.jruby.runtime.ThreadContext

Represents nil.

Note

We used to protect the constructor, but since manager is the new way I got lazy and removed protected.

Constructor Summary

AccessConstructor and Description
public
Nil()

Method Summary

Modifier and TypeMethod and Description
public Object
createCacheObject(ThreadContext context)

Implements abstract org.jruby.ir.operands.ImmutableLiteral.createCacheObject.

Implementing class is responsible for constructing the cached value.

public OperandType
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
Inherited from org.jruby.ir.operands.ImmutableLiteral:
addUsedVariablescachedObjectcanCopyPropagatecloneForInlininghasKnownValueisCachedretrieve

Constructor Detail

Nilback to summary
public Nil()

Method Detail

createCacheObjectback to summary
public Object createCacheObject(ThreadContext context)

Implements abstract org.jruby.ir.operands.ImmutableLiteral.createCacheObject.

Doc from org.jruby.ir.operands.ImmutableLiteral.createCacheObject.

Implementing class is responsible for constructing the cached value.

Annotations
@Override
getOperandTypeback to summary
public OperandType getOperandType()

Implements abstract org.jruby.ir.operands.Operand.getOperandType.

Annotations
@Override
isFalseyImmediateback to summary
public boolean isFalseyImmediate()

Overrides org.jruby.ir.operands.Operand.isFalseyImmediate.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.operands.Operand.visit.

Annotations
@Override