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, scopeDepthFields 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?voidbooleantoString()voidMethods inherited from class org.jruby.ir.operands.LocalVariable
decode, getId, getLocation, getName, getOffset, getOperandType, getScopeDepth, hashCode, isOuterScopeVar, isSameDepth, retrieveMethods inherited from class org.jruby.ir.operands.Variable
addUsedVariables, canCopyPropagate, cloneForInlining, getSimplifiedOperand, getValue, isSelfMethods inherited from class org.jruby.ir.operands.Operand
hasKnownValue, isFalseyImmediate, isTruthyImmediate
-
Constructor Details
-
ClosureLocalVariable
-
ClosureLocalVariable
-
-
Method Details
-
equals
- Overrides:
equalsin classLocalVariable
-
clone
- Overrides:
clonein classLocalVariable
-
cloneForDepth
Description copied from interface:DepthCloneableHow deep is this operand from where it is defined?- Specified by:
cloneForDepthin interfaceDepthCloneable- Overrides:
cloneForDepthin classLocalVariable
-
visit
- Overrides:
visitin classLocalVariable
-
encode
- Overrides:
encodein classLocalVariable
-
toString
- Overrides:
toStringin classLocalVariable
-