Package org.jruby.ir.operands
Class Splat
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.Splat
- All Implemented Interfaces:
DepthCloneable
-
Field Summary
Fields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Append the list of variables used in this operand to the input listcloneForDepth
(int n) When fixing up splats in nested closure we need to tweak the operand if it is a LocalVariablestatic Splat
void
getArray()
getSimplifiedOperand
(Map<Operand, Operand> valueMap, boolean force) boolean
Do we know the value of this operand at compile-time? If we do then it may be possible to constant propagate (one case: We also know it is also an ImmutableLiteral).retrieve
(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) toString()
void
Methods inherited from class org.jruby.ir.operands.Operand
canCopyPropagate, getValue, isFalseyImmediate, isTruthyImmediate
-
Constructor Details
-
Splat
-
-
Method Details
-
getOperandType
- Specified by:
getOperandType
in classOperand
-
toString
-
hasKnownValue
public boolean hasKnownValue()Description copied from class:Operand
Do we know the value of this operand at compile-time? If we do then it may be possible to constant propagate (one case: We also know it is also an ImmutableLiteral).- Overrides:
hasKnownValue
in classOperand
- Returns:
- true if a known compile-time value.
-
getArray
-
getSimplifiedOperand
- Overrides:
getSimplifiedOperand
in classOperand
-
addUsedVariables
Append the list of variables used in this operand to the input list- Specified by:
addUsedVariables
in classOperand
-
cloneForDepth
When fixing up splats in nested closure we need to tweak the operand if it is a LocalVariable- Specified by:
cloneForDepth
in interfaceDepthCloneable
-
cloneForInlining
- Specified by:
cloneForInlining
in classOperand
-
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) -
encode
-
decode
-
visit
-