public class StringLiteralNode extends ValueLiteralNode
"abc"
tree| Constructor and Description |
|---|
StringLiteralNode(LiteralTree t)
Create a new StringLiteralNode.
|
| 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) |
Collection<Node> |
getOperands()
|
String |
getValue()
Returns the value of the literal, null for the null literal.
|
String |
toString() |
getTree, hashCodegetBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebugpublic StringLiteralNode(LiteralTree t)
t - the tree for the literal valuepublic String getValue()
ValueLiteralNodegetValue in class ValueLiteralNodepublic <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Nodepublic boolean equals(@Nullable Object obj)
equals in class ValueLiteralNodepublic Collection<Node> getOperands()
NodegetOperands in class ValueLiteralNodeNodes of this Nodepublic String toString()
toString in class ValueLiteralNode