Package org.ruby_lang.prism
Class Nodes.IntegerNode
java.lang.Object
org.ruby_lang.prism.Nodes.Node
org.ruby_lang.prism.Nodes.IntegerNode
- Enclosing class:
- Nodes
Represents an integer number literal.
1
^
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal shortfinal ObjectThe value of the integer literal as a number.Fields inherited from class org.ruby_lang.prism.Nodes.Node
EMPTY_ARRAY, length, nodeId, startOffset -
Constructor Summary
ConstructorsConstructorDescriptionIntegerNode(int nodeId, int startOffset, int length, short flags, Object value) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(AbstractNodeVisitor<T> visitor) booleanisBinary()booleanbooleanbooleanisOctal()protected String<T> voidvisitChildNodes(AbstractNodeVisitor<T> visitor) Methods inherited from class org.ruby_lang.prism.Nodes.Node
endOffset, hasNewLineFlag, setNewLineFlag, setNewLineFlag, toString
-
Field Details
-
flags
public final short flags -
value
The value of the integer literal as a number.
-
-
Constructor Details
-
IntegerNode
-
-
Method Details
-
isBinary
public boolean isBinary() -
isDecimal
public boolean isDecimal() -
isOctal
public boolean isOctal() -
isHexadecimal
public boolean isHexadecimal() -
visitChildNodes
- Specified by:
visitChildNodesin classNodes.Node
-
childNodes
- Specified by:
childNodesin classNodes.Node
-
accept
- Specified by:
acceptin classNodes.Node
-
toString
- Specified by:
toStringin classNodes.Node
-