Package org.jruby.ir.operands
Class ClosureLocalVariable
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.Variable
org.jruby.ir.operands.LocalVariable
org.jruby.ir.operands.ClosureLocalVariable
- All Implemented Interfaces:
DepthCloneable
This represents a non-temporary variable used in a closure
and defined in this or a parent closure.
-
Field Summary
Fields inherited from class org.jruby.ir.operands.LocalVariable
hcode, isOuterScopeVar, name, offset, scopeDepth
Fields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY
-
Constructor Summary
ConstructorsConstructorDescriptionClosureLocalVariable
(RubySymbol name, int scopeDepth, int location) ClosureLocalVariable
(RubySymbol name, int scopeDepth, int location, boolean isOuterScopeVar) -
Method Summary
Modifier and TypeMethodDescriptionclone
(SimpleCloneInfo ii) cloneForDepth
(int n) How deep is this operand from where it is defined?void
boolean
toString()
void
Methods inherited from class org.jruby.ir.operands.LocalVariable
decode, getId, getLocation, getName, getOffset, getOperandType, getScopeDepth, hashCode, isOuterScopeVar, isSameDepth, retrieve
Methods inherited from class org.jruby.ir.operands.Variable
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelf
Methods inherited from class org.jruby.ir.operands.Operand
hasKnownValue, isFalseyImmediate, isTruthyImmediate
-
Constructor Details
-
ClosureLocalVariable
-
ClosureLocalVariable
-
-
Method Details
-
equals
- Overrides:
equals
in classLocalVariable
-
clone
- Overrides:
clone
in classLocalVariable
-
cloneForDepth
Description copied from interface:DepthCloneable
How deep is this operand from where it is defined?- Specified by:
cloneForDepth
in interfaceDepthCloneable
- Overrides:
cloneForDepth
in classLocalVariable
-
visit
- Overrides:
visit
in classLocalVariable
-
encode
- Overrides:
encode
in classLocalVariable
-
toString
- Overrides:
toString
in classLocalVariable
-