|
||||||||||
| 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 |
|---|
| Constructor Summary | |
|---|---|
protected |
ConstructorCall(int pos,
CodeIterator i,
CtClass decl,
MethodInfo m)
Undocumented constructor. |
| 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, getCtClass, getFileName, getLineNumber, getSignature, mayThrow, replace, where |
| Methods inherited from class javassist.expr.Expr |
|---|
edited, getConstPool, getEnclosingClass, indexOfBytecode, locals, replace, replace0, runEditor, stack, withinStatic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ConstructorCall(int pos,
CodeIterator i,
CtClass decl,
MethodInfo m)
| 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 | |||||||||