public class DoubleLiteralNode extends ValueLiteralNode
-9. 3.14159D
tree| Constructor and Description |
|---|
DoubleLiteralNode(LiteralTree t)
Create a new DoubleLiteralNode.
|
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(NodeVisitor<R,P> visitor,
P p)
Accept method of the visitor pattern.
|
boolean |
equals(@Nullable Object obj)
Compare the value of this nodes.
|
Collection<Node> |
getOperands() |
Double |
getValue() |
getTree, hashCode, toStringgetAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, setAssignmentContext, setBlock, setInSource, setLValuepublic DoubleLiteralNode(LiteralTree t)
t - the tree for the literal valuepublic Double getValue()
getValue in class ValueLiteralNodepublic <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Nodepublic boolean equals(@Nullable Object obj)
ValueLiteralNodeequals in class ValueLiteralNodepublic Collection<Node> getOperands()
getOperands in class ValueLiteralNodeNodes of this Node.