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 TemporaryLocalVariable
void
getId()
int
getType()
Differentiates between different types of TemporaryVariables (useful for switch and persistence).retrieve
(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) void
Methods inherited from class org.jruby.ir.operands.TemporaryVariable
equals, getOperandType, hashCode, toString
Methods inherited from class org.jruby.ir.operands.Variable
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelf
Methods 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:TemporaryVariable
Differentiates between different types of TemporaryVariables (useful for switch and persistence).- Specified by:
getType
in classTemporaryVariable
-
getPrefix
-
clone
-
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) -
encode
-
decode
-
visit
- Overrides:
visit
in classTemporaryVariable
-