diff options
Diffstat (limited to 'src/main/javassist/expr/MethodCall.java')
-rw-r--r-- | src/main/javassist/expr/MethodCall.java | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/main/javassist/expr/MethodCall.java b/src/main/javassist/expr/MethodCall.java index 0fbdf0c3..66ddeadd 100644 --- a/src/main/javassist/expr/MethodCall.java +++ b/src/main/javassist/expr/MethodCall.java @@ -16,9 +16,21 @@ package javassist.expr; -import javassist.*; -import javassist.bytecode.*; -import javassist.compiler.*; +import javassist.CannotCompileException; +import javassist.ClassPool; +import javassist.CtBehavior; +import javassist.CtClass; +import javassist.CtMethod; +import javassist.NotFoundException; +import javassist.bytecode.BadBytecode; +import javassist.bytecode.Bytecode; +import javassist.bytecode.CodeAttribute; +import javassist.bytecode.CodeIterator; +import javassist.bytecode.ConstPool; +import javassist.bytecode.Descriptor; +import javassist.bytecode.MethodInfo; +import javassist.compiler.CompileError; +import javassist.compiler.Javac; /** * Method invocation (caller-side expression). @@ -39,14 +51,14 @@ public class MethodCall extends Expr { if (c == INVOKEINTERFACE) return cp.getInterfaceMethodrefNameAndType(index); - else - return cp.getMethodrefNameAndType(index); + return cp.getMethodrefNameAndType(index); } /** * Returns the method or constructor containing the method-call * expression represented by this object. */ + @Override public CtBehavior where() { return super.where(); } /** @@ -55,6 +67,7 @@ public class MethodCall extends Expr { * * @return -1 if this information is not available. */ + @Override public int getLineNumber() { return super.getLineNumber(); } @@ -64,6 +77,7 @@ public class MethodCall extends Expr { * * @return null if this information is not available. */ + @Override public String getFileName() { return super.getFileName(); } @@ -137,6 +151,7 @@ public class MethodCall extends Expr { * including the expression can catch and the exceptions that * the throws declaration allows the method to throw. */ + @Override public CtClass[] mayThrow() { return super.mayThrow(); } @@ -176,6 +191,7 @@ public class MethodCall extends Expr { * * @param statement a Java statement except try-catch. */ + @Override public void replace(String statement) throws CannotCompileException { thisClass.getClassFile(); // to call checkModify(). ConstPool constPool = getConstPool(); |