git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@281 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -436,6 +436,8 @@ public abstract class CtClass { | |||
/** | |||
* Determines whether this object represents an annotation type. | |||
* It returns <code>true</code> if this object represents an annotation type. | |||
* | |||
* @since 3.2 | |||
*/ | |||
public boolean isAnnotation() { | |||
return false; | |||
@@ -444,6 +446,8 @@ public abstract class CtClass { | |||
/** | |||
* Determines whether this object represents an enum. | |||
* It returns <code>true</code> if this object represents an enum. | |||
* | |||
* @since 3.2 | |||
*/ | |||
public boolean isEnum() { | |||
return false; |
@@ -134,6 +134,8 @@ public class Modifier { | |||
/** | |||
* Returns true if the modifiers include the <tt>annotation</tt> | |||
* modifier. | |||
* | |||
* @since 3.2 | |||
*/ | |||
public static boolean isAnnotation(int mod) { | |||
return (mod & ANNOTATION) != 0; | |||
@@ -142,6 +144,8 @@ public class Modifier { | |||
/** | |||
* Returns true if the modifiers include the <tt>enum</tt> | |||
* modifier. | |||
* | |||
* @since 3.2 | |||
*/ | |||
public static boolean isEnum(int mod) { | |||
return (mod & ENUM) != 0; |
@@ -47,7 +47,7 @@ import javassist.bytecode.*; | |||
* public Object invoke(Object self, Method m, Method proceed, | |||
* Object[] args) throws Throwable { | |||
* System.out.println("Name: " + m.getName()); | |||
* proceed.invoke(self, args); // execute the original method. | |||
* return proceed.invoke(self, args); // execute the original method. | |||
* } | |||
* }; | |||
* f.setHandler(mi); |