public final class StringLiteral extends ValueExpressionBase
Modifier and Type | Field and Description |
---|---|
static int |
precedence |
java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
static StringLiteral |
construct(java.lang.String value)
Construction of a string literal.
|
int |
getPrecedence()
Get precedence value of the expression operator
(higher precedence value means higher binding power)
|
ClassSymbol |
getStringClass()
Get the string class.
|
void |
setStringClass(ClassSymbol stringClass)
Set the string class.
|
accept, accept, acceptChildren, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptChildren, print, printCore, toString, toStringCore
public static final int precedence
public final java.lang.String value
public static StringLiteral construct(java.lang.String value)
value
- the sequence of characters denoting the literal.public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class ASTProgramBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class ValueExpressionBase
visitor
- the visitor who is accepted by this node.public int getPrecedence()
public void setStringClass(ClassSymbol stringClass)
stringClass
- the string class.public ClassSymbol getStringClass()