Ver código fonte

Add getAvailableAnnotations() to CtMemeber


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@295 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
kkhan 18 anos atrás
pai
commit
e1f6d508cf
1 arquivos alterados com 14 adições e 0 exclusões
  1. 14
    0
      src/main/javassist/CtMember.java

+ 14
- 0
src/main/javassist/CtMember.java Ver arquivo

@@ -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.
*

Carregando…
Cancelar
Salvar