Searched refs:getAnnotationsByType (Results 26 - 50 of 64) sorted by relevance

123

/openjdk10/langtools/test/tools/javac/processing/model/element/repeatingAnnotations/supportingAnnotations/
H A DExpectedContainer.java33 String[] getAnnotationsByType() default {};
/openjdk10/jdk/test/java/lang/annotation/repeatingAnnotations/
H A DRepeatedUnitTest.java85 nr = e.getAnnotationsByType(NonRepeated.class)[0];
96 c = e.getAnnotationsByType(Containee.class)[0];
98 c = e.getAnnotationsByType(Containee.class)[1];
107 check(1 == containsAnnotationOfType(e.getAnnotationsByType(Container.class), Container.class));
132 check(e.getAnnotationsByType(Containee.class)[2].value() == 300);
133 check(e.getAnnotationsByType(InheritedContainee.class)[2].value() == 300);
134 check(e.getAnnotationsByType(InheritedNonRepeated.class)[0].value() == 200);
135 check(e.getAnnotationsByType(NonRepeated.class)[0].value() == 100);
147 check(e.getAnnotationsByType(InheritedContainee.class)[2].value() == 350);
148 check(e.getAnnotationsByType(InheritedNonRepeate
[all...]
H A DNonInheritableContainee.java56 Annotation[] anns = Sample.class.getAnnotationsByType(
H A DCustomRepeatingWithSecurityManager.java47 Asserts.assertTrue(new CustomAnnotations().getAnnotationsByType(MyAnnotation.class).length == 2,
49 Asserts.assertEquals(new CustomAnnotations().getAnnotationsByType(MyAnnotation.class)[1].name(),
H A DInheritedAssociatedAnnotations.java27 * @summary getAnnotationsByType needs to take the class hierarchy into account
47 Ann[] actual = ae.getAnnotationsByType(Ann.class);
/openjdk10/langtools/src/java.compiler/share/classes/javax/lang/model/
H A DAnnotatedConstruct.java225 * @see java.lang.reflect.AnnotatedElement#getAnnotationsByType(Class)
234 <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType); method in interface:AnnotatedConstruct
/openjdk10/langtools/test/tools/javac/processing/model/element/8009367/
H A DTestQualifiedNameUsed.java58 Q[] qs = e.getAnnotationsByType(Q.class);
62 p.Q[] ps = e.getAnnotationsByType(p.Q.class);
66 p.R.Q[] rs = e.getAnnotationsByType(p.R.Q.class);
/openjdk10/langtools/test/tools/javac/processing/model/inheritedByType/
H A DEnsureOrder.java70 Foo[] foos = element.getAnnotationsByType(Foo.class);
78 Foo[] foos = element.getAnnotationsByType(Foo.class);
88 Foo[] foos = t.getAnnotationsByType(Foo.class);
/openjdk10/jdk/src/java.base/share/classes/java/lang/reflect/
H A DAnnotatedElement.java47 * <p>The {@link #getAnnotationsByType(Class)} and {@link
130 * <th scope="row" style="font-weight:normal; text-align:left">{@link #getAnnotationsByType(Class) getAnnotationsByType(Class&lt;T&gt;)}
328 * #getAnnotationsByType(Class)} on the superclass with {@code
340 default <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) { method in interface:AnnotatedElement
357 result = superClass.getAnnotationsByType(annotationClass);
H A DParameter.java295 public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) { method in class:Parameter
326 return getAnnotationsByType(annotationClass);
H A DAccessibleObject.java522 public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) { method in class:AccessibleObject
553 // getAnnotationsByType.
554 return getAnnotationsByType(annotationClass);
/openjdk10/langtools/test/tools/javac/processing/model/element/repeatingAnnotations/
H A DElementRepAnnoTester.java82 getAnnotationsByType, enum constant in enum:ElementRepAnnoTester.TestMethod
178 case getAnnotationsByType:
182 String[] expectedAnnos = eb.getAnnotationsByType();
188 String[] expectedAnnos = ec.getAnnotationsByType();
194 + " method: getAnnotationsByType(class <T>)");
369 actualAnnosArgs = e.getAnnotationsByType(Foo.class);
379 actualAnnosArgs = e.getAnnotationsByType(FooInherited.class);
385 actualAnnosArgs = e.getAnnotationsByType(Bar.class);
391 actualAnnosArgs = e.getAnnotationsByType(BarInherited.class);
397 actualAnnosArgs = e.getAnnotationsByType(BarInheritedContaine
[all...]
/openjdk10/jdk/test/java/lang/reflect/DefaultStaticTest/
H A DDefaultStaticInvokeTest.java83 MethodDesc[] descs = typeUnderTest.getAnnotationsByType(MethodDesc.class);
106 for (MethodDesc desc : interfaze.getAnnotationsByType(MethodDesc.class)) {
132 MethodDesc[] expectedMethods = typeUnderTest.getAnnotationsByType(MethodDesc.class);
149 MethodDesc[] expectedMethods = typeUnderTest.getAnnotationsByType(MethodDesc.class);
184 MethodDesc[] expectedMethods = typeUnderTest.getAnnotationsByType(MethodDesc.class);
226 MethodDesc[] baseExpectedMethods = typeUnderTest.getAnnotationsByType(MethodDesc.class);
329 MethodDesc[] methDescs = type.getAnnotationsByType(MethodDesc.class);
/openjdk10/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/
H A DOverviewElement.java103 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { method in class:OverviewElement
/openjdk10/langtools/test/tools/javac/processing/model/element/
H A DTestNonInherited.java55 Foo[] foos = te.getAnnotationsByType(Foo.class);
H A DTestEmptyContainer.java57 Foo[] foos = te.getAnnotationsByType(Foo.class);
H A DTestTypeParameterAnnotations.java88 for (ExpectedTypeParameterAnnotations a : e.getAnnotationsByType(ExpectedTypeParameterAnnotations.class)) {
141 Object[] a = tpe.getAnnotationsByType(c);
/openjdk10/jdk/test/java/lang/annotation/
H A DTypeAnnotationReflection.java446 check(t[0].getAnnotationsByType(TypeAnno.class)[0].value().equals("1"));
450 check(t[1].getAnnotationsByType(TypeAnno.class)[0].value().equals("2"));
456 check(t[2].getAnnotationsByType(TypeAnno.class)[0].value().equals("3a"));
457 check(t[2].getAnnotationsByType(TypeAnno2.class)[0].value().equals("3b"));
466 check(t[0].getAnnotationsByType(TypeAnno.class)[0].value().equals("1"));
476 check(t[2].getAnnotationsByType(TypeAnno.class)[0].value().equals("3a"));
477 check(t[2].getAnnotationsByType(TypeAnno2.class)[0].value().equals("3b"));
514 check(t0.getAnnotationsByType(TypeAnno.class)[0].value().equals("1"));
518 check(t1.getAnnotationsByType(TypeAnno.class)[0].value().equals("2"));
524 check(t2.getAnnotationsByType(TypeAnn
[all...]
H A DTypeParamAnnotation.java96 as = ts[0].getAnnotationsByType(ParamAnno2.class);
/openjdk10/langtools/test/tools/javac/processing/model/util/
H A DTestIntersectionTypeVisitors.java80 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { method in class:TestIntersectionTypeVisitors.TestIntersectionType
/openjdk10/jdk/test/java/lang/reflect/AnnotatedElement/
H A DTestAnnotatedElementDefaults.java106 Object result = delegate.getAnnotationsByType(null);
304 // <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass)
305 failures += annotationArrayCheck(delegate.getAnnotationsByType(annotationClass),
306 base.getAnnotationsByType(annotationClass),
308 "Equality failure on getAnnotationsByType(%s) on %s)%n");
/openjdk10/jdk/src/java.base/share/classes/sun/reflect/generics/reflectiveObjects/
H A DTypeVariableImpl.java195 public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass) { method in class:TypeVariableImpl
203 return getAnnotationsByType(annotationClass);
/openjdk10/jdk/src/java.base/share/classes/java/lang/
H A DPackage.java459 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationClass) { method in class:Package
460 return getPackageInfo().getAnnotationsByType(annotationClass);
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/
H A DAnnoConstruct.java82 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annoType) { method in class:AnnoConstruct
188 // Helper to getAnnotationsByType
194 // Helper to getAnnotationsByType
/openjdk10/langtools/test/tools/javac/classfiles/attributes/Signature/
H A DDriver.java81 return Stream.of(clazz.getAnnotationsByType(ExpectedSignature.class))

Completed in 302 milliseconds

123