Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DRetentionPolicyTest.java100 getRetentionAnnotationsClass().getAnnotation(annotationClass); in testRetentionPolicy_targetSdkVersion_23()
112 getRetentionAnnotationsClass().getAnnotation(annotationClass); in testRetentionPolicy_targetSdkVersion_24()
119 assertNotNull(retentionAnnotationsClass.getAnnotation(getAnnotationClass( in testRetentionPolicy()
121 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.java253 return getAnnotation(annotationClass) != null; in isAnnotationPresent()
268 <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()
DConstructor.java382 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Constructor
383 return super.getAnnotation(annotationClass); in getAnnotation()
DParameter.java275 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Parameter
309 return getAnnotation(annotationClass); in getDeclaredAnnotation()
DMethod.java493 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Method
494 return super.getAnnotation(annotationClass); in getAnnotation()
DField.java895 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Field
/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.java70 EnableCompatChanges enableCompatChanges = description.getAnnotation( in apply()
72 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/
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
DField.java145 public <T extends java.lang.annotation.Annotation> T getAnnotation( in getAnnotation() method in Field
/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()
/libcore/ojluni/src/main/java/java/lang/
DPackage.java402 public <A extends Annotation> A getAnnotation(Class<A> annotationClass) { in getAnnotation() method in Package
403 return getPackageInfo().getAnnotation(annotationClass); in getAnnotation()

12