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)
Compare the value of this nodes.
|
Collection<Node> |
getOperands() |
String |
getValue() |
String |
toString() |
getTree, hashCodegetAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, setAssignmentContext, setBlock, setInSource, setLValuepublic StringLiteralNode(LiteralTree t)
t - the tree for the literal valuepublic String 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.public String toString()
toString in class ValueLiteralNode