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) |
Modifier and Type | Method and Description |
---|---|
JNewInstance |
cloneWithoutParameters()
Creates a new method call to the same method using the same instance but without parameters.
|
JClassType |
getClassType() |
JConstructor |
getTarget() |
JReferenceType |
getType()
Returns the type of this expression.
|
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, markSideEffectFree, overrideReturnType, resolve, setArg, setCannotBePolymorphic, setStaticDispatchOnly, setVolatile, visitChildren
makeReturnStatement, makeStatement
getSourceInfo, setSourceInfo, toSource, toString
public JNewInstance(JNewInstance other)
public JNewInstance(SourceInfo info, JConstructor ctor)
public JNewInstance cloneWithoutParameters()
JMethodCall
cloneWithoutParameters
in class JMethodCall
public JClassType getClassType()
public JConstructor getTarget()
getTarget
in class JMethodCall
public JReferenceType getType()
HasType
getType
in interface HasType
getType
in class JMethodCall
public boolean hasSideEffects()
hasSideEffects
in class JMethodCall
public void traverse(JVisitor visitor, Context ctx)
JNode
traverse
in class JMethodCall
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.