|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavassist.expr.Expr
javassist.expr.MethodCall
javassist.expr.ConstructorCall
public class ConstructorCall
Constructor call such as this() and super()
within a constructor body.
NewExpr| Field Summary |
|---|
| Method Summary | |
|---|---|
CtConstructor |
getConstructor()
Returns the called constructor. |
CtMethod |
getMethod()
Always throws a NotFoundException. |
java.lang.String |
getMethodName()
Returns "super" or ""this". |
boolean |
isSuper()
Returns true if the called constructor is not this()
but super() (a constructor declared in the super class). |
| Methods inherited from class javassist.expr.MethodCall |
|---|
getClassName, getFileName, getLineNumber, getSignature, mayThrow, replace, where |
| Methods inherited from class javassist.expr.Expr |
|---|
getEnclosingClass, indexOfBytecode, replace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getMethodName()
"super" or ""this".
getMethodName in class MethodCall
public CtMethod getMethod()
throws NotFoundException
NotFoundException.
getMethod in class MethodCallNotFoundExceptiongetConstructor()
public CtConstructor getConstructor()
throws NotFoundException
NotFoundExceptionpublic boolean isSuper()
this()
but super() (a constructor declared in the super class).
isSuper in class MethodCall
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||