Top Description Constructors Methods
javassist.expr

public Class ConstructorCall

extends MethodCall
Class Inheritance
Imports
javassist.CtClass, .CtConstructor, .CtMethod, .NotFoundException, javassist.bytecode.CodeIterator, .MethodInfo

Constructor call such as this() and super() within a constructor body.
See Also
NewExpr

Constructor Summary

AccessConstructor and Description
protected
ConstructorCall(int pos, CodeIterator i, CtClass decl, MethodInfo m)

Undocumented constructor.

Method Summary

Modifier and TypeMethod and Description
public CtConstructor
getConstructor()

Returns the called constructor.

public CtMethod
getMethod()

Overrides javassist.expr.MethodCall.getMethod.

Always throws a NotFoundException.

public String
getMethodName()

Overrides javassist.expr.MethodCall.getMethodName.

Returns "super" or ""this".

public boolean
isSuper()

Overrides javassist.expr.MethodCall.isSuper.

Returns true if the called constructor is not this() but super() (a constructor declared in the super class).

Inherited from javassist.expr.MethodCall:
getClassNamegetCtClassgetFileNamegetLineNumbergetSignaturemayThrowreplacewhere

Constructor Detail

ConstructorCallback to summary
protected ConstructorCall(int pos, CodeIterator i, CtClass decl, MethodInfo m)

Undocumented constructor. Do not use; internal-use only.

Method Detail

getConstructorback to summary
public CtConstructor getConstructor() throws NotFoundException

Returns the called constructor.

getMethodback to summary
public CtMethod getMethod() throws NotFoundException

Overrides javassist.expr.MethodCall.getMethod.

Always throws a NotFoundException.

Annotations
@Override
See Also
getConstructor()
getMethodNameback to summary
public String getMethodName()

Overrides javassist.expr.MethodCall.getMethodName.

Returns "super" or ""this".

Annotations
@Override
isSuperback to summary
public boolean isSuper()

Overrides javassist.expr.MethodCall.isSuper.

Returns true if the called constructor is not this() but super() (a constructor declared in the super class).

Annotations
@Override