| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| protected CtClass | |
| public String | Returns: null if this information is not available.Overrides javassist. Returns the source file containing the method call. |
| public int | Returns: -1 if this information is not available.Overrides javassist. Returns the line number of the source line containing the method call. |
| public CtMethod | |
| public String | |
| private int | |
| public String | |
| public boolean | |
| public CtClass[] | mayThrow()
Overrides javassist. Returns the list of exceptions that the expression may throw. |
| public void | replace(String
a Java statement except try-catch. statement)Implements abstract javassist. Replaces the method call with the bytecode derived from the given source text. |
| public CtBehavior | where()
Overrides javassist. Returns the method or constructor containing the method-call expression represented by this object. |
| MethodCall | back to summary |
|---|---|
| protected MethodCall(int pos, CodeIterator i, CtClass declaring, MethodInfo m) Undocumented constructor. Do not use; internal-use only. | |
| getClassName | back to summary |
|---|---|
| public String getClassName() Returns the class name of the target object, which the method is called on. | |
| getCtClass | back to summary |
|---|---|
| protected CtClass getCtClass() throws NotFoundException Returns the class of the target object, which the method is called on. | |
| getFileName | back to summary |
|---|---|
| public String getFileName() Overrides javassist. Returns the source file containing the method call. | |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Overrides javassist. Returns the line number of the source line containing the method call.
| |
| getMethod | back to summary |
|---|---|
| public CtMethod getMethod() throws NotFoundException Returns the called method. | |
| getMethodName | back to summary |
|---|---|
| public String getMethodName() Returns the name of the called method. | |
| getNameAndType | back to summary |
|---|---|
| private int getNameAndType(ConstPool cp) | |
| getSignature | back to summary |
|---|---|
| public String getSignature() Returns the method signature (the parameter types and the return type). The method signature is represented by a character string called method descriptor, which is defined in the JVM specification.
| |
| isSuper | back to summary |
|---|---|
| public boolean isSuper() Returns true if the called method is of a superclass of the current class. | |
| mayThrow | back to summary |
|---|---|
| public CtClass[] mayThrow() Overrides javassist. Returns the list of exceptions that the expression may throw. This list includes both the exceptions that the try-catch statements including the expression can catch and the exceptions that the throws declaration allows the method to throw.
| |
| replace | back to summary |
|---|---|
| public void replace(String statement) throws CannotCompileException Implements abstract javassist. Replaces the method call with the bytecode derived from the given source text. $0 is available even if the called method is static. | |
| where | back to summary |
|---|---|
| public CtBehavior where() Overrides javassist. Returns the method or constructor containing the method-call expression represented by this object.
| |