public class FloatNode extends NumericNode implements ILiteralNode, LiteralValue, SideEffectFree
containsVariableAssignment, newline| Constructor and Description |
|---|
FloatNode(int line,
double 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() |
double |
getValue()
Gets the value.
|
int |
hashCode() |
IRubyObject |
literalValue(Ruby runtime) |
NumericNode |
negate() |
void |
setValue(double value)
Sets the value
|
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewlinepublic NodeType getNodeType()
getNodeType in class Nodepublic <T> T accept(NodeVisitor<T> iVisitor)
public NumericNode negate()
negate in class NumericNodepublic double getValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setValue(double value)
value - to setpublic java.util.List<Node> childNodes()
childNodes in class Nodepublic IRubyObject literalValue(Ruby runtime)
literalValue in interface LiteralValueCopyright © 2001-2022 JRuby. All Rights Reserved.