
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, visitChildrenmakeReturnStatement, makeStatementgetSourceInfo, setSourceInfo, toSource, toStringpublic JNewInstance(JNewInstance other)
public JNewInstance(SourceInfo info, JConstructor ctor)
public JNewInstance cloneWithoutParameters()
JMethodCallcloneWithoutParameters in class JMethodCallpublic JClassType getClassType()
public JConstructor getTarget()
getTarget in class JMethodCallpublic JReferenceType getType()
HasTypegetType in interface HasTypegetType in class JMethodCallpublic boolean hasSideEffects()
hasSideEffects in class JMethodCallpublic void traverse(JVisitor visitor, Context ctx)
JNodetraverse in class JMethodCallvisitor - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.