Searched refs:annoType (Results 1 - 9 of 9) sorted by relevance

/openjdk7/langtools/test/tools/javac/6341866/
H A DT6341866.java78 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 DClassDeclarationImpl.java58 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 DDeclarationImpl.java126 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 DAnnotationProxyMaker.java57 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 DAnnotationProxyMaker.java62 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 DJavacElements.java101 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 DTester.java148 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 DSymbol.java455 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 DUnitTest.java3468 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);

Completed in 92 milliseconds