public class JStringLiteral extends JValueLiteral
Constructor and Description |
---|
JStringLiteral(SourceInfo sourceInfo,
String value,
JClassType stringType) |
Modifier and Type | Method and Description |
---|---|
JNonNullType |
getType()
Returns the type of this expression.
|
String |
getValue() |
Object |
getValueObj() |
void |
resolve(JClassType stringType)
Resolve an external references during AST stitching.
|
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
hasSideEffects
makeStatement
getSourceInfo, setSourceInfo, toSource, toString
public JStringLiteral(SourceInfo sourceInfo, String value, JClassType stringType)
public JNonNullType getType()
HasType
public String getValue()
public Object getValueObj()
getValueObj
in class JValueLiteral
public void resolve(JClassType stringType)
public void traverse(JVisitor visitor, Context ctx)
JVisitable
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.