Package org.jruby.ir.operands
Class TemporaryLocalVariable
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.Variable
org.jruby.ir.operands.TemporaryVariable
org.jruby.ir.operands.TemporaryLocalVariable
- Direct Known Subclasses:
TemporaryBooleanVariable,TemporaryClosureVariable,TemporaryCurrentModuleVariable,TemporaryFixnumVariable,TemporaryFloatVariable,TemporaryIntVariable,TemporaryLocalReplacementVariable
A set of variables which are only used in a particular scope and never
visible to Ruby itself.
-
Field Summary
FieldsFields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone(SimpleCloneInfo ii) static TemporaryLocalVariablevoidgetId()intgetType()Differentiates between different types of TemporaryVariables (useful for switch and persistence).retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) voidMethods inherited from class org.jruby.ir.operands.TemporaryVariable
equals, getOperandType, hashCode, toStringMethods inherited from class org.jruby.ir.operands.Variable
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelfMethods inherited from class org.jruby.ir.operands.Operand
hasKnownValue, isFalseyImmediate, isTruthyImmediate
-
Field Details
-
PREFIX
- See Also:
-
offset
public final int offset
-
-
Constructor Details
-
TemporaryLocalVariable
public TemporaryLocalVariable(int offset)
-
-
Method Details
-
getId
-
getOffset
public int getOffset() -
getType
Description copied from class:TemporaryVariableDifferentiates between different types of TemporaryVariables (useful for switch and persistence).- Specified by:
getTypein classTemporaryVariable
-
getPrefix
-
clone
-
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) -
encode
-
decode
-
visit
- Overrides:
visitin classTemporaryVariable
-