/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | RetentionPolicyTest.java | 100 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()
|
D | AnnotatedElementTestSupport.java | 125 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/ |
D | AnnotatedElement.java | 253 return getAnnotation(annotationClass) != null; in isAnnotationPresent() 268 <T extends Annotation> T getAnnotation(Class<T> annotationClass); in getAnnotation() method
|
D | AccessibleObject.java | 200 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in AccessibleObject 239 return getAnnotation(annotationClass); in getDeclaredAnnotation()
|
D | Constructor.java | 382 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Constructor 383 return super.getAnnotation(annotationClass); in getAnnotation()
|
D | Parameter.java | 275 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Parameter 309 return getAnnotation(annotationClass); in getDeclaredAnnotation()
|
D | Method.java | 493 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in getAnnotation() method in Method 494 return super.getAnnotation(annotationClass); in getAnnotation()
|
D | Field.java | 895 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/ |
D | AccessibleObjectTest.java | 139 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/ |
D | CoreCompatChangeRule.java | 70 EnableCompatChanges enableCompatChanges = description.getAnnotation( in apply() 72 DisableCompatChanges disableCompatChanges = description.getAnnotation( in apply()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | AnnotatedElementBenchmark.java | 67 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/ |
D | AnnotatedElement.annotated.java | 38 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method
|
D | AccessibleObject.annotated.java | 42 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in AccessibleObject
|
D | Constructor.annotated.java | 68 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in Constructor
|
D | Parameter.annotated.java | 59 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in Parameter
|
D | Executable.annotated.java | 64 @libcore.util.Nullable public <T extends java.lang.annotation.Annotation> T getAnnotation(@libcore.… in getAnnotation() method in Executable
|
D | Method.annotated.java | 78 @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/ |
D | AccessibleObject.java | 56 public <T extends java.lang.annotation.Annotation> T getAnnotation( in getAnnotation() method in AccessibleObject
|
D | Parameter.java | 94 public <T extends java.lang.annotation.Annotation> T getAnnotation( in getAnnotation() method in Parameter
|
D | Constructor.java | 134 public <T extends java.lang.annotation.Annotation> T getAnnotation( in getAnnotation() method in Constructor
|
D | Field.java | 145 public <T extends java.lang.annotation.Annotation> T getAnnotation( in getAnnotation() method in Field
|
/libcore/test-rules/src/main/java/libcore/junit/util/ |
D | SwitchTargetSdkVersionRule.java | 93 TargetSdkVersion targetSdkVersion = description.getAnnotation(TargetSdkVersion.class); in apply()
|
D | ResourceLeakageDetector.java | 138 if (description.getAnnotation(DisableResourceLeakageDetection.class) != null) { in apply()
|
/libcore/test-rules/src/main/java/libcore/junit/junit3/ |
D | TestCaseWithRules.java | 88 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in runBare()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Package.java | 402 public <A extends Annotation> A getAnnotation(Class<A> annotationClass) { in getAnnotation() method in Package 403 return getPackageInfo().getAnnotation(annotationClass); in getAnnotation()
|