]> source.dussan.org Git - javassist.git/commitdiff
Add getAvailableAnnotations() to CtMemeber
authorkkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 17 Jul 2006 17:43:27 +0000 (17:43 +0000)
committerkkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 17 Jul 2006 17:43:27 +0000 (17:43 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@295 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/CtMember.java

index 6fa84b5f6b33221164c2f508258ed0b970838616..341521b8ebe37cbd63f0c5b216be439903f0f703 100644 (file)
@@ -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 <code>@Author</code> is associated
+     * with this member, the returned array contains an <code>Author</code>
+     * object.  The member values can be obtained by calling methods on
+     * the <code>Author</code> 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.
      *