public class LocalVariable extends Variable
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected int |
offset |
protected int |
scopeDepth |
BLOCK, CURRENT_MODULE, CURRENT_SCOPE
EMPTY_ARRAY
Constructor and Description |
---|
LocalVariable(String name,
int scopeDepth,
int location) |
Modifier and Type | Method and Description |
---|---|
Variable |
cloneForCloningClosure(InlinerInfo ii) |
LocalVariable |
cloneForDepth(int n) |
int |
compareTo(Object arg0) |
boolean |
equals(Object obj) |
int |
getLocation() |
String |
getName() |
int |
getScopeDepth() |
int |
hashCode() |
boolean |
isSelf() |
Object |
retrieve(ThreadContext context,
IRubyObject self,
DynamicScope currDynScope,
Object[] temp) |
String |
toString() |
void |
visit(IRVisitor visitor) |
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isImplicitBlockArg
fetchCompileTimeArrayElement, hasKnownValue
protected String name
protected int scopeDepth
protected int offset
public LocalVariable(String name, int scopeDepth, int location)
public int getScopeDepth()
public int getLocation()
public int compareTo(Object arg0)
public boolean isSelf()
public Object retrieve(ThreadContext context, IRubyObject self, DynamicScope currDynScope, Object[] temp)
public Variable cloneForCloningClosure(InlinerInfo ii)
cloneForCloningClosure
in class Variable
public LocalVariable cloneForDepth(int n)
Copyright © 2001-2014 JRuby. All Rights Reserved.