public abstract class ValueLiteralNode extends Node
Modifier and Type | Field and Description |
---|---|
protected LiteralTree |
tree
The tree for the value literal.
|
Modifier | Constructor and Description |
---|---|
protected |
ValueLiteralNode(LiteralTree tree) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable Object obj) |
Collection<Node> |
getOperands()
|
LiteralTree |
getTree()
Returns the
Tree in the abstract syntax tree, or null if no corresponding tree
exists. |
abstract @Nullable Object |
getValue()
Returns the value of the literal, null for the null literal.
|
int |
hashCode() |
String |
toString() |
accept, getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebug
protected final LiteralTree tree
protected 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 ImplicitThisNode
.public Collection<Node> getOperands()
Node
getOperands
in class Node
Node
s of this Node