public abstract class ValueLiteralNode extends Node
Modifier and Type | Field and Description |
---|---|
protected LiteralTree |
tree
The tree for the value literal.
|
Constructor and Description |
---|
ValueLiteralNode(LiteralTree tree) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable Object obj)
Compare the value of this nodes.
|
Collection<Node> |
getOperands() |
LiteralTree |
getTree()
Returns the
Tree in the abstract syntax tree, or null if no corresponding
tree exists. |
abstract @Nullable Object |
getValue() |
int |
hashCode() |
String |
toString() |
accept, getAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, setAssignmentContext, setBlock, setInSource, setLValue
protected final LiteralTree tree
public ValueLiteralNode(LiteralTree tree)
public abstract @Nullable Object getValue()
public LiteralTree getTree()
Node
Tree
in the abstract syntax tree, or null
if no corresponding
tree exists. For instance, this is the case for an ImplicitThisLiteralNode
.public Collection<Node> getOperands()
getOperands
in class Node
Node
s of this Node
.