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| Constructor and Description | 
|---|
| 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() | 
| OperandType | getOperandType() | 
| 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, isSelfhasKnownValueprotected final String name
protected final int scopeDepth
protected final int offset
protected final int hcode
public LocalVariable(String 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 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.