Home
last modified time | relevance | path

Searched refs:getAnnotation (Results 1 – 25 of 37) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DRetentionPolicyTest.java105 getRetentionAnnotationsClass().getAnnotation(annotationClass); in testRetentionPolicy_targetSdkVersion_23()
117 getRetentionAnnotationsClass().getAnnotation(annotationClass); in testRetentionPolicy_targetSdkVersion_24()
124 assertNotNull(retentionAnnotationsClass.getAnnotation(getAnnotationClass( in testRetentionPolicy()
126 assertNull(retentionAnnotationsClass.getAnnotation(getAnnotationClass( in testRetentionPolicy()
DAnnotatedElementTestSupport.java125 element.getAnnotation(null); in checkAnnotatedElementPresentMethods()
177 assertNotNull(element.getAnnotation(annotation)); in assertPresent()
180 assertNull(element.getAnnotation(annotation)); in assertPresent()
/libcore/ojluni/src/main/java/java/lang/reflect/
DAnnotatedElement.java269 return getAnnotation(annotationClass) != null; in isAnnotationPresent()
284 <T extends Annotation> T getAnnotation(Class<T> annotationClass); in getAnnotation() method
DAccessibleObject.java200 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in AccessibleObject
239 return getAnnotation(annotationClass); in getDeclaredAnnotation()
DParameter.java275 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Parameter
309 return getAnnotation(annotationClass); in getDeclaredAnnotation()
DConstructor.java382 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Constructor
383 return super.getAnnotation(annotationClass); in getAnnotation()
DMethod.java493 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Method
494 return super.getAnnotation(annotationClass); in getAnnotation()
DRecordComponent.java223 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in RecordComponent
/libcore/luni/src/test/java/crossvmtest/java/lang/
DRecordComponentTest.java78 .getAnnotation(CustomAnnotation.class) in testGetAnnotation()
81 .getAnnotation(CustomAnnotation.class) in testGetAnnotation()
92 .getAnnotation(CustomAnnotation2.class)); in testGetRecordComponentAnnotation()
93 CustomAnnotation2 customAnnotation2 = components[0].getAnnotation(CustomAnnotation2.class); in testGetRecordComponentAnnotation()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DAccessibleObjectTest.java139 ao.getAnnotation(null); in test_getAnnotation()
147 InheritedRuntime ir = ao.getAnnotation(InheritedRuntime.class); in test_getAnnotation()
151 AnnotationRuntime0 rt0 = ao.getAnnotation(AnnotationRuntime0.class); in test_getAnnotation()
/libcore/test-rules/src/platform_compat/java/libcore/junit/util/
DCoreCompatChangeRule.java69 EnableCompatChanges enableCompatChanges = description.getAnnotation( in apply()
71 DisableCompatChanges disableCompatChanges = description.getAnnotation( in apply()
/libcore/benchmarks/src/benchmarks/regression/
DAnnotatedElementBenchmark.java67 type.getAnnotation(Marker.class); in timeGetTypeAnnotation()
73 field.getAnnotation(Marker.class); in timeGetFieldAnnotation()
79 method.getAnnotation(Marker.class); in timeGetMethodAnnotation()
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DRecordComponent.annotated.java44 public <T extends java.lang.annotation.Annotation> @libcore.util.Nullable T getAnnotation(@libcore.… in getAnnotation() method in RecordComponent
DAnnotatedElement.annotated.java38 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method
DAccessibleObject.annotated.java42 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in AccessibleObject
DConstructor.annotated.java68 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in Constructor
DParameter.annotated.java59 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in Parameter
DExecutable.annotated.java64 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in Executable
DMethod.annotated.java78 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in Method
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DAccessibleObject.java56 public <T extends java.lang.annotation.Annotation> T getAnnotation( in getAnnotation() method in AccessibleObject
DParameter.java94 public <T extends java.lang.annotation.Annotation> T getAnnotation( in getAnnotation() method in Parameter
DConstructor.java134 public <T extends java.lang.annotation.Annotation> T getAnnotation( in getAnnotation() method in Constructor
/libcore/test-rules/src/main/java/libcore/junit/util/
DSwitchTargetSdkVersionRule.java93 TargetSdkVersion targetSdkVersion = description.getAnnotation(TargetSdkVersion.class); in apply()
DResourceLeakageDetector.java138 if (description.getAnnotation(DisableResourceLeakageDetection.class) != null) { in apply()
/libcore/test-rules/src/main/java/libcore/junit/junit3/
DTestCaseWithRules.java88 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in runBare()

12