Package org.jruby.ir.operands
Class Complex
java.lang.Object
org.jruby.ir.operands.Operand
org.jruby.ir.operands.ImmutableLiteral
org.jruby.ir.operands.Complex
Represents a Complex literal.
-
Field Summary
Fields inherited from class org.jruby.ir.operands.Operand
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCacheObject(ThreadContext context) Implementing class is responsible for constructing the cached value.static ComplexvoidbooleanReturns true if this is an immediate value that will always be considered truthy (true, numbers, etc)toString()voidMethods inherited from class org.jruby.ir.operands.ImmutableLiteral
addUsedVariables, cachedObject, canCopyPropagate, cloneForInlining, hasKnownValue, isCached, retrieveMethods inherited from class org.jruby.ir.operands.Operand
getSimplifiedOperand, getValue, isFalseyImmediate
-
Constructor Details
-
Complex
-
-
Method Details
-
getOperandType
- Specified by:
getOperandTypein classOperand
-
createCacheObject
Description copied from class:ImmutableLiteralImplementing class is responsible for constructing the cached value.- Specified by:
createCacheObjectin classImmutableLiteral
-
toString
-
visit
-
encode
-
decode
-
getNumber
-
isTruthyImmediate
public boolean isTruthyImmediate()Description copied from class:OperandReturns true if this is an immediate value that will always be considered truthy (true, numbers, etc)- Overrides:
isTruthyImmediatein classOperand- Returns:
-