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