diff options
author | kkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-07-17 17:43:27 +0000 |
---|---|---|
committer | kkhan <kkhan@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-07-17 17:43:27 +0000 |
commit | e1f6d508cf71f8db4125859af2d6fe507c235402 (patch) | |
tree | 8006e2a2a22f0576c4e109caf5b6bc443fb193e3 /src/main | |
parent | 0273ae2abc0455feb3137e2ca7202e996d28085a (diff) | |
download | javassist-e1f6d508cf71f8db4125859af2d6fe507c235402.tar.gz javassist-e1f6d508cf71f8db4125859af2d6fe507c235402.zip |
Add getAvailableAnnotations() to CtMemeber
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@295 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/javassist/CtMember.java | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -157,6 +157,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. * * <p>As for constructor names, see <code>getName()</code> |