<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>
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.