Package org.jruby.ir.operands
Class Hash
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.Hash
-
Field Summary
FieldsFields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionHash
(List<KeyValuePair<Operand, Operand>> pairs) protected
Hash
(KeyValuePair<Operand, Operand>[] pairs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Append the list of variables used in this operand to the input listcloneForLVarDepth
(int newDepth) static Hash
void
getPairs()
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).boolean
isBlank()
boolean
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
-
Field Details
-
pairs
-
-
Constructor Details
-
Hash
-
Hash
-
-
Method Details
-
getOperandType
- Specified by:
getOperandType
in classOperand
-
isBlank
public boolean isBlank() -
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.
-
getSimplifiedOperand
- Overrides:
getSimplifiedOperand
in classOperand
-
addUsedVariables
Append the list of variables used in this operand to the input list- Specified by:
addUsedVariables
in classOperand
-
cloneForLVarDepth
-
cloneForInlining
- Specified by:
cloneForInlining
in classOperand
-
isKeywordRest
public boolean isKeywordRest() -
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) -
visit
-
encode
-
decode
-
toString
-
getPairs
-