javassist.expr

Class ConstructorCall

public class ConstructorCall extends MethodCall

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

See Also: NewExpr

Method Summary
CtConstructorgetConstructor()
Returns the called constructor.
CtMethodgetMethod()
Always throws a NotFoundException.
StringgetMethodName()
Returns "super" or ""this".
booleanisSuper()
Returns true if the called constructor is not this() but super() (a constructor declared in the super class).

Method Detail

getConstructor

public CtConstructor getConstructor()
Returns the called constructor.

getMethod

public CtMethod getMethod()
Always throws a NotFoundException.

See Also: getConstructor

getMethodName

public String getMethodName()
Returns "super" or ""this".

isSuper

public boolean isSuper()
Returns true if the called constructor is not this() but super() (a constructor declared in the super class).
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.