public class JGwtCreate extends JExpression
Constructor and Description |
---|
JGwtCreate(SourceInfo info,
JReferenceType sourceType,
Collection<JClassType> resultTypes,
JType type,
JDeclaredType enclosingType)
Public constructor used during AST creation.
|
JGwtCreate(SourceInfo info,
String sourceType,
List<String> resultTypes,
JType type,
ArrayList<JExpression> instantiationExpressions)
Constructor used for cloning an existing node.
|
Modifier and Type | Method and Description |
---|---|
static JExpression |
createInstantiationExpression(SourceInfo info,
JClassType classType,
JDeclaredType enclosingType) |
ArrayList<JExpression> |
getInstantiationExpressions() |
List<String> |
getResultTypes() |
String |
getSourceType() |
JType |
getType()
Returns the type of this expression.
|
boolean |
hasSideEffects() |
static String |
nameOf(JType type)
Rebinds are always on a source type name.
|
void |
setType(JType newType) |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
makeStatement
getSourceInfo, setSourceInfo, toSource, toString
public JGwtCreate(SourceInfo info, JReferenceType sourceType, Collection<JClassType> resultTypes, JType type, JDeclaredType enclosingType)
public JGwtCreate(SourceInfo info, String sourceType, List<String> resultTypes, JType type, ArrayList<JExpression> instantiationExpressions)
public static JExpression createInstantiationExpression(SourceInfo info, JClassType classType, JDeclaredType enclosingType)
public ArrayList<JExpression> getInstantiationExpressions()
public String getSourceType()
public JType getType()
HasType
public boolean hasSideEffects()
hasSideEffects
in class JExpression
public void setType(JType newType)
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.