477 public <A extends java.lang.annotation.Annotation> A getAnnotation(Class<A> annoType) { |
477 public <A extends java.lang.annotation.Annotation> A getAnnotation(Class<A> annoType) { |
478 return JavacElements.getAnnotation(this, annoType); |
478 return JavacElements.getAnnotation(this, annoType); |
479 } |
479 } |
480 |
480 |
481 // This method is part of the javax.lang.model API, do not use this in javac code. |
481 // This method is part of the javax.lang.model API, do not use this in javac code. |
482 public <A extends java.lang.annotation.Annotation> A[] getAnnotations(Class<A> annoType) { |
482 public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(Class<A> annoType) { |
483 return JavacElements.getAnnotations(this, annoType); |
483 return JavacElements.getAnnotations(this, annoType); |
484 } |
484 } |
485 |
485 |
486 // TODO: getEnclosedElements should return a javac List, fix in FilteredMemberList |
486 // TODO: getEnclosedElements should return a javac List, fix in FilteredMemberList |
487 public java.util.List<Symbol> getEnclosedElements() { |
487 public java.util.List<Symbol> getEnclosedElements() { |