/openjdk7/langtools/test/tools/javac/6341866/ |
H A D | T6341866.java | 78 for (AnnoType annoType: EnumSet.allOf(AnnoType.class)) { 79 ok &= test(implicitType, annoType); 91 static boolean test(ImplicitType implicitType, AnnoType annoType) throws IOException { argument 92 System.err.println("test implicit=" + implicitType + " anno=" + annoType); 104 switch (annoType) { 145 switch (annoType) {
|
/openjdk7/langtools/src/share/classes/com/sun/tools/apt/mirror/declaration/ |
H A D | ClassDeclarationImpl.java | 58 public <A extends Annotation> A getAnnotation(Class<A> annoType) { argument 60 boolean inherited = annoType.isAnnotationPresent(Inherited.class); 65 A result = getAnnotation(annoType, t.tsym);
|
H A D | DeclarationImpl.java | 126 public <A extends Annotation> A getAnnotation(Class<A> annoType) { argument 127 return getAnnotation(annoType, sym); 130 protected <A extends Annotation> A getAnnotation(Class<A> annoType, argument 132 if (!annoType.isAnnotation()) { 134 "Not an annotation type: " + annoType); 136 String name = annoType.getName(); 140 annoType);
|
H A D | AnnotationProxyMaker.java | 57 private final Class<? extends Annotation> annoType; field in class:AnnotationProxyMaker 62 Class<? extends Annotation> annoType) { 65 this.annoType = annoType; 73 AptEnv env, Attribute.Compound attrs, Class<A> annoType) { 74 AnnotationProxyMaker apm = new AnnotationProxyMaker(env, attrs, annoType); 75 return annoType.cast(apm.generateAnnotation()); 83 return AnnotationParser.annotationForMap(annoType, 159 method = annoType.getMethod(meth.name.toString()); 60 AnnotationProxyMaker(AptEnv env, Attribute.Compound attrs, Class<? extends Annotation> annoType) argument 72 generateAnnotation( AptEnv env, Attribute.Compound attrs, Class<A> annoType) argument
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/model/ |
H A D | AnnotationProxyMaker.java | 62 private final Class<? extends Annotation> annoType; field in class:AnnotationProxyMaker 66 Class<? extends Annotation> annoType) { 68 this.annoType = annoType; 76 Attribute.Compound anno, Class<A> annoType) { 77 AnnotationProxyMaker apm = new AnnotationProxyMaker(anno, annoType); 78 return annoType.cast(apm.generateAnnotation()); 86 return AnnotationParser.annotationForMap(annoType, 160 method = annoType.getMethod(meth.name.toString()); 65 AnnotationProxyMaker(Attribute.Compound anno, Class<? extends Annotation> annoType) argument 75 generateAnnotation( Attribute.Compound anno, Class<A> annoType) argument
|
H A D | JavacElements.java | 101 Class<A> annoType) { 102 if (!annoType.isAnnotation()) 104 + annoType); 105 String name = annoType.getName(); 108 return AnnotationProxyMaker.generateAnnotation(anno, annoType); 117 Class<A> annoType) { 118 boolean inherited = annoType.isAnnotationPresent(Inherited.class); 121 result = getAnnotation((Symbol)annotated, annoType); 100 getAnnotation(Symbol annotated, Class<A> annoType) argument 116 getAnnotation(ClassSymbol annotated, Class<A> annoType) argument
|
/openjdk7/langtools/test/tools/apt/lib/ |
H A D | Tester.java | 148 protected AnnotationMirror getAnno(String methodName, String annoType) { argument 151 TypeDeclaration at = env.getTypeDeclaration(annoType);
|
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/code/ |
H A D | Symbol.java | 455 public <A extends java.lang.annotation.Annotation> A getAnnotation(Class<A> annoType) { argument 456 return JavacElements.getAnnotation(this, annoType); 887 public <A extends java.lang.annotation.Annotation> A getAnnotation(Class<A> annoType) { argument 888 return JavacElements.getAnnotation(this, annoType);
|
/openjdk7/jdk/test/java/lang/annotation/ |
H A D | UnitTest.java | 3468 static <T extends Annotation> void checkEquals(AnnotatedElement e1, AnnotatedElement e2, Class<T> annoType) { argument 3470 T a1 = e1.getAnnotation(annoType); 3471 T a2 = e2.getAnnotation(annoType); 3484 static <T extends Annotation> void checkUnequals(AnnotatedElement e1, AnnotatedElement e2, Class<T> annoType) { argument 3486 T a1 = e1.getAnnotation(annoType); 3487 T a2 = e2.getAnnotation(annoType); 3502 static <T extends Annotation> void checkSerialization(AnnotatedElement e, Class<T> annoType) { argument 3504 T a1 = e.getAnnotation(annoType);
|