Top Description Fields Constructors Methods
org.jruby.ir.operands

public Class NullBlock

extends ImmutableLiteral
Class Inheritance
Imports
org.jruby.ir.IRVisitor, org.jruby.ir.persistence.IRReaderDecoder, org.jruby.runtime.Block, .ThreadContext

Represents Block.NULL block, the block that cannot be yielded.

Field Summary

Modifier and TypeField and Description
public static final NullBlock

Constructor Summary

AccessConstructor and Description
private

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 static NullBlock
public OperandType
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

Field Detail

INSTANCEback to summary
public static final NullBlock INSTANCE

Constructor Detail

NullBlockback to summary
private NullBlock()

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
decodeback to summary
public static NullBlock decode(IRReaderDecoder d)
getOperandTypeback to summary
public OperandType getOperandType()

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

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