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) protectedHash(KeyValuePair<Operand, Operand>[] pairs) -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend the list of variables used in this operand to the input listcloneForLVarDepth(int newDepth) static HashvoidgetPairs()getSimplifiedOperand(Map<Operand, Operand> valueMap, boolean force) booleanDo 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).booleanisBlank()booleanretrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) toString()voidMethods inherited from class org.jruby.ir.operands.Operand
canCopyPropagate, getValue, isFalseyImmediate, isTruthyImmediate
-
Field Details
-
pairs
-
-
Constructor Details
-
Hash
-
Hash
-
-
Method Details
-
getOperandType
- Specified by:
getOperandTypein classOperand
-
isBlank
public boolean isBlank() -
hasKnownValue
public boolean hasKnownValue()Description copied from class:OperandDo 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:
hasKnownValuein classOperand- Returns:
- true if a known compile-time value.
-
getSimplifiedOperand
- Overrides:
getSimplifiedOperandin classOperand
-
addUsedVariables
Append the list of variables used in this operand to the input list- Specified by:
addUsedVariablesin classOperand
-
cloneForLVarDepth
-
cloneForInlining
- Specified by:
cloneForInliningin classOperand
-
isKeywordRest
public boolean isKeywordRest() -
retrieve
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp) -
visit
-
encode
-
decode
-
toString
-
getPairs
-