public class LocalVariable extends Variable implements DepthCloneable
| Modifier and Type | Field and Description |
|---|---|
protected int |
hcode |
protected String |
name |
protected int |
offset |
protected int |
scopeDepth |
EMPTY_ARRAY| Modifier | Constructor and Description |
|---|---|
protected |
LocalVariable(OperandType type,
String name,
int scopeDepth,
int location) |
|
LocalVariable(String name,
int scopeDepth,
int location) |
| Modifier and Type | Method and Description |
|---|---|
Variable |
clone(SimpleCloneInfo ii) |
LocalVariable |
cloneForDepth(int n)
How deep is this operand from where it is defined?
|
int |
compareTo(Object arg0) |
static LocalVariable |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
boolean |
equals(Object obj) |
int |
getLocation() |
String |
getName() |
int |
getOffset() |
int |
getScopeDepth() |
int |
hashCode() |
boolean |
isSameDepth(LocalVariable other) |
Object |
retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
String |
toString() |
void |
visit(IRVisitor visitor) |
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelfgetOperandType, hasKnownValueprotected final String name
protected final int scopeDepth
protected final int offset
protected final int hcode
public LocalVariable(String name, int scopeDepth, int location)
protected LocalVariable(OperandType type, String name, int scopeDepth, int location)
public boolean isSameDepth(LocalVariable other)
public int getScopeDepth()
public int getOffset()
public int getLocation()
public int compareTo(Object arg0)
compareTo in interface Comparablepublic Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp)
public Variable clone(SimpleCloneInfo ii)
public LocalVariable cloneForDepth(int n)
DepthCloneablecloneForDepth in interface DepthCloneablepublic void encode(IRWriterEncoder e)
public static LocalVariable decode(IRReaderDecoder d)
Copyright © 2001-2015 JRuby. All Rights Reserved.