
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.
|
hasSideEffectsmakeStatementgetSourceInfo, setSourceInfo, toSource, toStringpublic JStringLiteral(SourceInfo sourceInfo, String value, JClassType stringType)
public JValueLiteral cloneFrom(JValueLiteral value)
cloneFrom in class JValueLiteralpublic JNonNullType getType()
HasTypepublic String getValue()
public Object getValueObj()
getValueObj in class JValueLiteralpublic void resolve(JClassType stringType)
public void traverse(JVisitor visitor, Context ctx)
JVisitablevisitor - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.