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