public class LocalVariable extends Variable implements DepthCloneable
| Modifier and Type | Field and Description |
|---|---|
protected int |
hcode |
protected RubySymbol |
name |
protected int |
offset |
protected int |
scopeDepth |
EMPTY_ARRAY| Constructor and Description |
|---|
LocalVariable(RubySymbol 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(java.lang.Object arg0) |
static LocalVariable |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId() |
int |
getLocation() |
RubySymbol |
getName() |
int |
getOffset() |
OperandType |
getOperandType() |
int |
getScopeDepth() |
int |
hashCode() |
boolean |
isSameDepth(LocalVariable other) |
java.lang.Object |
retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
java.lang.Object[] temp) |
java.lang.String |
toString() |
void |
visit(IRVisitor visitor) |
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelfhasKnownValueprotected final RubySymbol name
protected final int scopeDepth
protected final int offset
protected final int hcode
public LocalVariable(RubySymbol name, int scopeDepth, int location)
public OperandType getOperandType()
getOperandType in class Operandpublic boolean isSameDepth(LocalVariable other)
public int getScopeDepth()
public int getOffset()
public int getLocation()
public RubySymbol getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparablepublic java.lang.Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, java.lang.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-2018 JRuby. All Rights Reserved.