public class TemporaryLocalVariable extends TemporaryVariable
Modifier and Type | Field and Description |
---|---|
int |
offset |
static String |
PREFIX |
EMPTY_ARRAY
Constructor and Description |
---|
TemporaryLocalVariable(int offset) |
TemporaryLocalVariable(String name,
int offset) |
Modifier and Type | Method and Description |
---|---|
Variable |
clone(SimpleCloneInfo ii) |
static TemporaryLocalVariable |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
int |
getOffset() |
String |
getPrefix() |
TemporaryVariableType |
getType()
Differentiates between different types of TemporaryVariables (useful for switch and persistence).
|
Object |
retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
void |
visit(IRVisitor visitor) |
compareTo, equals, getName, hashCode, toString
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelf
getOperandType, hasKnownValue
public static final String PREFIX
public final int offset
public TemporaryLocalVariable(String name, int offset)
public TemporaryLocalVariable(int offset)
public int getOffset()
public TemporaryVariableType getType()
TemporaryVariable
getType
in class TemporaryVariable
public String getPrefix()
public Variable clone(SimpleCloneInfo ii)
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp)
public void encode(IRWriterEncoder e)
public static TemporaryLocalVariable decode(IRReaderDecoder d)
public void visit(IRVisitor visitor)
visit
in class TemporaryVariable
Copyright © 2001-2015 JRuby. All Rights Reserved.