|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectclassUtils.javassist.expr.Expr
classUtils.javassist.expr.MethodCall
public class MethodCall
Method invocation (caller-side expression).
Field Summary |
---|
Method Summary | |
---|---|
java.lang.String |
getClassName()
Returns the class name of the target object, which the method is called on. |
java.lang.String |
getFileName()
Returns the source file containing the method call. |
int |
getLineNumber()
Returns the line number of the source line containing the method call. |
CtMethod |
getMethod()
Returns the called method. |
java.lang.String |
getMethodName()
Returns the name of the called method. |
boolean |
isSuper()
Returns true if the called method is of a superclass of the current class. |
CompileTimeClass[] |
mayThrow()
Returns the list of exceptions that the expression may throw. |
void |
replace(java.lang.String statement)
Replaces the method call with the bytecode derived from the given source text. |
CtBehavior |
where()
Returns the method or constructor containing the method-call expression represented by this object. |
Methods inherited from class classUtils.javassist.expr.Expr |
---|
indexOfBytecode |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public CtBehavior where()
where
in class Expr
public int getLineNumber()
getLineNumber
in class Expr
public java.lang.String getFileName()
getFileName
in class Expr
public java.lang.String getClassName()
public java.lang.String getMethodName()
public CtMethod getMethod() throws NotFoundException
NotFoundException
public CompileTimeClass[] mayThrow()
mayThrow
in class Expr
public boolean isSuper()
public void replace(java.lang.String statement) throws CannotCompileException
$0 is available even if the called method is static.
statement
- a Java statement.
CannotCompileException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |