From e1f6d508cf71f8db4125859af2d6fe507c235402 Mon Sep 17 00:00:00 2001 From: kkhan Date: Mon, 17 Jul 2006 17:43:27 +0000 Subject: [PATCH] Add getAvailableAnnotations() to CtMemeber git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@295 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/CtMember.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/javassist/CtMember.java b/src/main/javassist/CtMember.java index 6fa84b5f..341521b8 100644 --- a/src/main/javassist/CtMember.java +++ b/src/main/javassist/CtMember.java @@ -156,6 +156,20 @@ public abstract class CtMember { */ public abstract Object[] getAnnotations() throws ClassNotFoundException; + /** + * Returns the annotations associated with this member. + * For example, if an annotation @Author is associated + * with this member, the returned array contains an Author + * object. The member values can be obtained by calling methods on + * the Author object. + * If any annotations are not on the classpath, they are not returned + * + * @return an array of annotation-type objects. + * @see CtClass#getAnnotations() + */ + public abstract Object[] getAvailableAnnotations() throws ClassNotFoundException; + + /** * Obtains the name of the member. * -- 2.39.5