Package org.jruby.ir.operands
Class TemporaryClosureVariable
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.Variable
org.jruby.ir.operands.TemporaryVariable
org.jruby.ir.operands.TemporaryLocalVariable
org.jruby.ir.operands.TemporaryClosureVariable
-
Field Summary
Fields inherited from class org.jruby.ir.operands.TemporaryLocalVariable
offset, PREFIX
Fields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone
(SimpleCloneInfo ii) static TemporaryClosureVariable
void
int
getType()
Differentiates between different types of TemporaryVariables (useful for switch and persistence).Methods inherited from class org.jruby.ir.operands.TemporaryLocalVariable
getId, getOffset, retrieve, visit
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
-
Constructor Details
-
TemporaryClosureVariable
public TemporaryClosureVariable(int closureId, int offset)
-
-
Method Details
-
getClosureId
public int getClosureId() -
getType
Description copied from class:TemporaryVariable
Differentiates between different types of TemporaryVariables (useful for switch and persistence).- Overrides:
getType
in classTemporaryLocalVariable
-
clone
- Overrides:
clone
in classTemporaryLocalVariable
-
encode
- Overrides:
encode
in classTemporaryLocalVariable
-
decode
-
getPrefix
- Overrides:
getPrefix
in classTemporaryLocalVariable
-