public class ClosureLocalVariable extends LocalVariable
hcode, isOuterScopeVar, name, offset, scopeDepth
EMPTY_ARRAY
Constructor and Description |
---|
ClosureLocalVariable(RubySymbol name,
int scopeDepth,
int location) |
ClosureLocalVariable(RubySymbol name,
int scopeDepth,
int location,
boolean isOuterScopeVar) |
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) |
void |
encode(IRWriterEncoder e) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
toString() |
void |
visit(IRVisitor visitor) |
decode, getId, getLocation, getName, getOffset, getOperandType, getScopeDepth, hashCode, isOuterScopeVar, isSameDepth, retrieve
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelf
hasKnownValue, isFalseyImmediate, isTruthyImmediate
public ClosureLocalVariable(RubySymbol name, int scopeDepth, int location)
public ClosureLocalVariable(RubySymbol name, int scopeDepth, int location, boolean isOuterScopeVar)
public boolean equals(java.lang.Object obj)
equals
in class LocalVariable
public int compareTo(java.lang.Object arg0)
compareTo
in interface java.lang.Comparable
compareTo
in class LocalVariable
public Variable clone(SimpleCloneInfo ii)
clone
in class LocalVariable
public LocalVariable cloneForDepth(int n)
DepthCloneable
cloneForDepth
in interface DepthCloneable
cloneForDepth
in class LocalVariable
public void visit(IRVisitor visitor)
visit
in class LocalVariable
public void encode(IRWriterEncoder e)
encode
in class LocalVariable
public java.lang.String toString()
toString
in class LocalVariable
Copyright © 2001-2022 JRuby. All Rights Reserved.