Package org.jruby.ast
Class BignumNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.NumericNode
org.jruby.ast.BignumNode
- All Implemented Interfaces:
LiteralValue
,SideEffectFree
,ILiteralNode
Represents a big integer literal.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) getValue()
Gets the value.literalValue
(Ruby runtime) negate()
void
setValue
(BigInteger value) Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
BignumNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
-
negate
- Overrides:
negate
in classNumericNode
-
getValue
Gets the value.- Returns:
- Returns a BigInteger
-
childNodes
- Specified by:
childNodes
in classNode
-
setValue
-
literalValue
- Specified by:
literalValue
in interfaceLiteralValue
-