src/share/classes/com/sun/tools/javac/code/Symbol.java

changeset 1564
aeadaf905d78
parent 1541
4cc73ec94686
child 1565
d04960f05593
equal deleted inserted replaced
1563:bc456436c613 1564:aeadaf905d78
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() {

mercurial