git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@17 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -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> |
@@ -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. | |||