public class FixnumNode extends NumericNode implements ILiteralNode, SideEffectFree
containsVariableAssignment, newline| Constructor and Description |
|---|
FixnumNode(int line,
long value) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> iVisitor) |
java.util.List<Node> |
childNodes() |
boolean |
equals(java.lang.Object o) |
NodeType |
getNodeType() |
long |
getValue()
Gets the value.
|
int |
hashCode() |
IRubyObject |
literalValue(Ruby runtime) |
NumericNode |
negate() |
void |
setValue(long value) |
java.lang.String |
toStringExtraInfo()
Not all interesting info in the AST is from Node data.
|
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringInternal, unsetNewlinepublic <T> T accept(NodeVisitor<T> iVisitor)
public NodeType getNodeType()
getNodeType in class Nodepublic NumericNode negate()
negate in class NumericNodepublic long getValue()
public void setValue(long value)
public java.util.List<Node> childNodes()
childNodes in class Nodepublic java.lang.String toStringExtraInfo()
NodetoStringExtraInfo in class Nodepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic IRubyObject literalValue(Ruby runtime)
literalValue in interface LiteralValueCopyright © 2001-2022 JRuby. All Rights Reserved.