Browse Source

added isSuper() in MethodCall.


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@17 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 21 years ago
parent
commit
4a1ef53c0d
2 changed files with 10 additions and 0 deletions
  1. 1
    0
      Readme.html
  2. 9
    0
      src/main/javassist/expr/MethodCall.java

+ 1
- 0
Readme.html View File

@@ -245,6 +245,7 @@ see javassist.Dump.
<li>CtClass.makeClassInitializer() has been added.
<li>javassist.expr.Expr has been changed to a public class.
<li>javassist.expr.Handler has been added.
<li>javassist.expr.MethodCall.isSuper() has been added.
<li>CtMethod.isEmpty() and CtConstructor.isEmpty() have been added.
<li>LoaderClassPath has been implemented.
</ul>

+ 9
- 0
src/main/javassist/expr/MethodCall.java View File

@@ -127,6 +127,15 @@ public class MethodCall extends Expr {
return super.mayThrow();
}

/**
* Returns true if the called method is of a superclass of the current
* class.
*/
boolean isSuper() {
return iterator.byteAt(currentPos) == INVOKESPECIAL
&& !where().getDeclaringClass().getName().equals(getClassName());
}

/*
* Returns the parameter types of the called method.


Loading…
Cancel
Save