[jboss-cvs] javassist/src/main/javassist ...
Kabir Khan
kkhan at jboss.com
Mon Jul 17 13:43:27 EDT 2006
User: kkhan
Date: 06/07/17 13:43:27
Modified: src/main/javassist CtMember.java
Log:
Add getAvailableAnnotations() to CtMemeber
Revision Changes Path
1.15 +14 -0 javassist/src/main/javassist/CtMember.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CtMember.java
===================================================================
RCS file: /cvsroot/jboss/javassist/src/main/javassist/CtMember.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- CtMember.java 11 Jan 2006 06:45:54 -0000 1.14
+++ CtMember.java 17 Jul 2006 17:43:27 -0000 1.15
@@ -157,6 +157,20 @@
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>
More information about the jboss-cvs-commits
mailing list