/**
* 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;
/**
* 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;
/**
* Returns true if the modifiers include the <tt>annotation</tt>
* modifier.
+ *
+ * @since 3.2
*/
public static boolean isAnnotation(int mod) {
return (mod & ANNOTATION) != 0;
/**
* Returns true if the modifiers include the <tt>enum</tt>
* modifier.
+ *
+ * @since 3.2
*/
public static boolean isEnum(int mod) {
return (mod & ENUM) != 0;
* 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);