public class JStringLiteral extends JValueLiteral
Constructor and Description |
---|
JStringLiteral(SourceInfo sourceInfo,
String value,
JClassType stringType) |
Modifier and Type | Method and Description |
---|---|
JValueLiteral |
cloneFrom(JValueLiteral value) |
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 JValueLiteral cloneFrom(JValueLiteral value)
cloneFrom
in class JValueLiteral
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.