public class JNewInstance extends JMethodCall
Constructor and Description |
---|
JNewInstance(JNewInstance other)
Initialize a new instance operation equivalent to another one.
|
JNewInstance(SourceInfo info,
JConstructor ctor,
JDeclaredType enclosingType) |
Modifier and Type | Method and Description |
---|---|
JClassType |
getClassType() |
JDeclaredType |
getEnclosingType() |
JConstructor |
getTarget() |
JNonNullType |
getType()
Returns the type of this expression.
|
boolean |
hasClinit() |
boolean |
hasSideEffects() |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
addArg, addArg, addArgs, addArgs, canBePolymorphic, getArgs, getInstance, isStaticDispatchOnly, isVolatile, removeArg, resolve, setArg, setCannotBePolymorphic, setStaticDispatchOnly, setVolatile, visitChildren
makeStatement
getSourceInfo, setSourceInfo, toSource, toString
public JNewInstance(JNewInstance other)
public JNewInstance(SourceInfo info, JConstructor ctor, JDeclaredType enclosingType)
public JClassType getClassType()
public JDeclaredType getEnclosingType()
public JConstructor getTarget()
getTarget
in class JMethodCall
public JNonNullType getType()
HasType
getType
in interface HasType
getType
in class JMethodCall
public boolean hasClinit()
public boolean hasSideEffects()
hasSideEffects
in class JMethodCall
public void traverse(JVisitor visitor, Context ctx)
JVisitable
traverse
in interface JVisitable
traverse
in class JMethodCall
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.