/external/guice/core/src/com/google/inject/internal/ |
D | Annotations.java | 59 public static boolean isMarker(Class<? extends Annotation> annotationType) { in isMarker() argument 60 return annotationType.getDeclaredMethods().length == 0; in isMarker() 63 public static boolean isAllDefaultMethods(Class<? extends Annotation> annotationType) { in isAllDefaultMethods() argument 65 for (Method m : annotationType.getDeclaredMethods()) { in isAllDefaultMethods() 87 public static <T extends Annotation> T generateAnnotation(Class<T> annotationType) { in generateAnnotation() argument 89 isAllDefaultMethods(annotationType), "%s is not all default methods", annotationType); in generateAnnotation() local 90 return (T)cache.getUnchecked(annotationType); in generateAnnotation() 93 private static <T extends Annotation> T generateAnnotationImpl(final Class<T> annotationType) { in generateAnnotationImpl() argument 94 final Map<String, Object> members = resolveMembers(annotationType); in generateAnnotationImpl() 95 return annotationType.cast(Proxy.newProxyInstance( in generateAnnotationImpl() [all …]
|
D | ScopeBindingProcessor.java | 40 …Class<? extends Annotation> annotationType = checkNotNull(command.getAnnotationType(), "annotation… in visit() local 42 if (!Annotations.isScopeAnnotation(annotationType)) { in visit() 43 errors.missingScopeAnnotation(annotationType); in visit() 47 if (!Annotations.isRetainedAtRuntime(annotationType)) { in visit() 48 errors.missingRuntimeRetention(annotationType); in visit() 52 ScopeBinding existing = injector.state.getScopeBinding(annotationType); in visit() 55 errors.duplicateScopes(existing, annotationType, scope); in visit() 58 injector.state.putScopeBinding(annotationType, command); in visit()
|
D | ExposureBuilder.java | 46 public void annotatedWith(Class<? extends Annotation> annotationType) { in annotatedWith() argument 47 Preconditions.checkNotNull(annotationType, "annotationType"); in annotatedWith() 49 key = Key.get(key.getTypeLiteral(), annotationType); in annotatedWith()
|
/external/guice/core/src/com/google/inject/ |
D | Key.java | 76 protected Key(Class<? extends Annotation> annotationType) { in Key() argument 77 this.annotationStrategy = strategyFor(annotationType); in Key() 250 Class<? extends Annotation> annotationType) { 251 return new Key<T>(type, strategyFor(annotationType)); 272 Class<? extends Annotation> annotationType) { 273 return new Key<Object>(type, strategyFor(annotationType)); 294 Class<? extends Annotation> annotationType) { 295 return new Key<T>(typeLiteral, strategyFor(annotationType)); 367 Class<? extends Annotation> annotationType = annotation.annotationType(); 368 ensureRetainedAtRuntime(annotationType); [all …]
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Parameter.java | 65 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent() argument 66 return getAnnotation(annotationType) != null; in isAnnotationPresent() 71 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation() argument 72 checkNotNull(annotationType); in getAnnotation() 74 if (annotationType.isInstance(annotation)) { in getAnnotation() 75 return annotationType.cast(annotation); in getAnnotation() 89 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType() argument 90 return getDeclaredAnnotationsByType(annotationType); in getAnnotationsByType() 106 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument 107 checkNotNull(annotationType); in getDeclaredAnnotation() [all …]
|
/external/proguard/src/proguard/ |
D | MemberSpecification.java | 34 public final String annotationType; field in MemberSpecification 73 String annotationType, in MemberSpecification() argument 79 this.annotationType = annotationType; in MemberSpecification() 100 …(this.annotationType == null ? other.annotationType == null : this.annotationType.equals(other.ann… in equals() 110 (annotationType == null ? 0 : annotationType.hashCode()) ^ in hashCode()
|
D | ClassSpecification.java | 38 public final String annotationType; field in ClassSpecification 71 classSpecification.annotationType, in ClassSpecification() 110 String annotationType, in ClassSpecification() argument 118 annotationType, in ClassSpecification() 159 String annotationType, in ClassSpecification() argument 169 this.annotationType = annotationType; in ClassSpecification() 226 …(this.annotationType == null ? other.annotationType == null : this.annotationType… in equals() 240 (annotationType == null ? 0 : annotationType.hashCode() ) ^ in hashCode()
|
/external/junit/src/org/junit/experimental/theories/ |
D | ParameterSignature.java | 63 public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType) { in findDeepAnnotation() argument 65 return findDeepAnnotation(annotations2, annotationType, 3); in findDeepAnnotation() 69 Annotation[] annotations, Class<T> annotationType, int depth) { in findDeepAnnotation() argument 73 if (annotationType.isInstance(each)) in findDeepAnnotation() 74 return annotationType.cast(each); in findDeepAnnotation() 75 Annotation candidate= findDeepAnnotation(each.annotationType() in findDeepAnnotation() 76 .getAnnotations(), annotationType, depth - 1); in findDeepAnnotation() 78 return annotationType.cast(candidate); in findDeepAnnotation() 84 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation() argument 86 if (annotationType.isInstance(each)) in getAnnotation() [all …]
|
/external/guice/core/src/com/google/inject/matcher/ |
D | Matchers.java | 97 Class<? extends Annotation> annotationType) { in checkForRuntimeRetention() argument 98 Retention retention = annotationType.getAnnotation(Retention.class); in checkForRuntimeRetention() 100 "Annotation %s is missing RUNTIME retention", annotationType.getSimpleName()); in checkForRuntimeRetention() 108 final Class<? extends Annotation> annotationType) { in annotatedWith() argument 109 return new AnnotatedWithType(annotationType); in annotatedWith() 114 private final Class<? extends Annotation> annotationType; field in Matchers.AnnotatedWithType 116 public AnnotatedWithType(Class<? extends Annotation> annotationType) { in AnnotatedWithType() argument 117 this.annotationType = checkNotNull(annotationType, "annotation type"); in AnnotatedWithType() 118 checkForRuntimeRetention(annotationType); in AnnotatedWithType() 122 return element.isAnnotationPresent(annotationType); in matches() [all …]
|
/external/testng/src/main/java/org/testng/xml/ |
D | SuiteGenerator.java | 24 Map<String, String> parameters, String annotationType, int logLevel) { in createSuite() argument 34 parameters, annotationType, logLevel); in createSuite() 40 parameters, annotationType, logLevel); in createSuite() 46 annotationType, logLevel); in createSuite() 60 Map<String, String> parameters, String annotationType, int logLevel) { in createCustomizedSuite() argument 63 parameters, annotationType, logLevel); in createCustomizedSuite() 67 parameters, annotationType, logLevel); in createCustomizedSuite() 70 parameters, annotationType, logLevel); in createCustomizedSuite()
|
/external/guice/core/src/com/google/inject/spi/ |
D | ScopeBinding.java | 39 private final Class<? extends Annotation> annotationType; field in ScopeBinding 42 ScopeBinding(Object source, Class<? extends Annotation> annotationType, Scope scope) { in ScopeBinding() argument 44 this.annotationType = checkNotNull(annotationType, "annotationType"); in ScopeBinding() 53 return annotationType; in getAnnotationType() 65 binder.withSource(getSource()).bindScope(annotationType, scope); in applyTo()
|
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
D | FactoryModuleBuilder.java | 273 Class<? extends Annotation> annotationType, Class<? extends T> target) { in implement() argument 274 return implement(source, annotationType, TypeLiteral.get(target)); in implement() 281 Class<? extends Annotation> annotationType, TypeLiteral<? extends T> target) { in implement() argument 282 return implement(TypeLiteral.get(source), annotationType, target); in implement() 289 Class<? extends Annotation> annotationType, Class<? extends T> target) { in implement() argument 290 return implement(source, annotationType, TypeLiteral.get(target)); in implement() 297 Class<? extends Annotation> annotationType, TypeLiteral<? extends T> target) { in implement() argument 298 return implement(Key.get(source, annotationType), target); in implement()
|
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
D | ShortNameFactory.java | 53 Class<? extends Annotation> annotationType = key.getAnnotationType(); in getAnnotationName() local 55 annotationType = annotation.annotationType(); in getAnnotationName() 58 String canonicalName = annotationType.getName(); in getAnnotationName() 59 String simpleName = annotationType.getSimpleName(); in getAnnotationName() 62 } else if (annotationType != null) { in getAnnotationName() 63 return "@" + annotationType.getSimpleName(); in getAnnotationName()
|
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/ |
D | MultibindingsScanner.java | 135 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class); 144 Method valueMethod = annotation.annotationType().getDeclaredMethod("value"); 147 annotation.annotationType()); 152 annotation.annotationType()); 164 if (!mapKeyAnnotation.annotationType().getAnnotation(MapKey.class).unwrapValue()) { 165 return new TypeAndValue(TypeLiteral.get(mapKeyAnnotation.annotationType()), mapKeyAnnotation); 168 Method valueMethod = mapKeyAnnotation.annotationType().getDeclaredMethod("value"); 171 TypeLiteral.get(mapKeyAnnotation.annotationType()).getReturnType(valueMethod);
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/reflect/ |
D | Annotation.java | 14 public <T extends java.lang.annotation.Annotation> T getAnnotation (Class<T> annotationType) { in getAnnotation() argument 15 if (annotation.annotationType().equals(annotationType)) { in getAnnotation() 22 return annotation.annotationType(); in getAnnotationType()
|
D | Method.java | 122 …lic boolean isAnnotationPresent (Class<? extends java.lang.annotation.Annotation> annotationType) { in isAnnotationPresent() argument 126 if (annotation.annotationType().equals(annotationType)) { in isAnnotationPresent() 151 …nnotation getDeclaredAnnotation (Class<? extends java.lang.annotation.Annotation> annotationType) { in getDeclaredAnnotation() argument 156 if (annotation.annotationType().equals(annotationType)) { in getDeclaredAnnotation()
|
D | Field.java | 107 …lic boolean isAnnotationPresent (Class<? extends java.lang.annotation.Annotation> annotationType) { in isAnnotationPresent() argument 110 if (annotation.annotationType().equals(annotationType)) { in isAnnotationPresent() 131 …nnotation getDeclaredAnnotation (Class<? extends java.lang.annotation.Annotation> annotationType) { in getDeclaredAnnotation() argument 134 if (annotation.annotationType().equals(annotationType)) { in getDeclaredAnnotation()
|
D | ClassReflection.java | 200 …an isAnnotationPresent (Class c, Class<? extends java.lang.annotation.Annotation> annotationType) { in isAnnotationPresent() argument 203 if (annotation.getAnnotationType().equals(annotationType)) return true; in isAnnotationPresent() 227 Type annotationType = ReflectionCache.getType(superAnnotations[i].annotationType()); in getAnnotations() local 228 if (annotationType.getDeclaredAnnotation(Inherited.class) != null) { in getAnnotations() 232 if (annotation.getAnnotationType().equals(annotationType)) { in getAnnotations() 257 …notation getAnnotation (Class c, Class<? extends java.lang.annotation.Annotation> annotationType) { in getAnnotation() argument 260 if (annotation.getAnnotationType().equals(annotationType)) return annotation; in getAnnotation() 278 … getDeclaredAnnotation (Class c, Class<? extends java.lang.annotation.Annotation> annotationType) { in getDeclaredAnnotation() argument 279 …nnotation.Annotation annotation = ReflectionCache.getType(c).getDeclaredAnnotation(annotationType); in getDeclaredAnnotation()
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/reflect/ |
D | Annotation.java | 14 public <T extends java.lang.annotation.Annotation> T getAnnotation (Class<T> annotationType) { in getAnnotation() argument 15 if (annotation.annotationType().equals(annotationType)) { in getAnnotation() 22 return annotation.annotationType(); in getAnnotationType()
|
D | Method.java | 119 …lic boolean isAnnotationPresent (Class<? extends java.lang.annotation.Annotation> annotationType) { in isAnnotationPresent() argument 120 return method.isAnnotationPresent(annotationType); in isAnnotationPresent() 138 …nnotation getDeclaredAnnotation (Class<? extends java.lang.annotation.Annotation> annotationType) { in getDeclaredAnnotation() argument 144 if (annotation.annotationType().equals(annotationType)) { in getDeclaredAnnotation()
|
D | Field.java | 124 …lic boolean isAnnotationPresent (Class<? extends java.lang.annotation.Annotation> annotationType) { in isAnnotationPresent() argument 125 return field.isAnnotationPresent(annotationType); in isAnnotationPresent() 142 …nnotation getDeclaredAnnotation (Class<? extends java.lang.annotation.Annotation> annotationType) { in getDeclaredAnnotation() argument 148 if (annotation.annotationType().equals(annotationType)) { in getDeclaredAnnotation()
|
D | ClassReflection.java | 197 …an isAnnotationPresent (Class c, Class<? extends java.lang.annotation.Annotation> annotationType) { in isAnnotationPresent() argument 198 return c.isAnnotationPresent(annotationType); in isAnnotationPresent() 214 …notation getAnnotation (Class c, Class<? extends java.lang.annotation.Annotation> annotationType) { in getAnnotation() argument 215 java.lang.annotation.Annotation annotation = c.getAnnotation(annotationType); in getAnnotation() 233 … getDeclaredAnnotation (Class c, Class<? extends java.lang.annotation.Annotation> annotationType) { in getDeclaredAnnotation() argument 236 if (annotation.annotationType().equals(annotationType)) return new Annotation(annotation); in getDeclaredAnnotation()
|
/external/javassist/src/main/javassist/bytecode/annotation/ |
D | AnnotationImpl.java | 44 private transient Class annotationType; field in AnnotationImpl 96 if (annotationType == null) { in getAnnotationType() 99 annotationType = classLoader.loadClass(typeName); in getAnnotationType() 107 return annotationType; in getAnnotationType() 190 Method[] methods = annotationType.getDeclaredMethods(); in hashCode() 250 Method[] methods = annotationType.getDeclaredMethods(); in checkEquals()
|
/external/proguard/src/proguard/gui/ |
D | MemberSpecificationDialog.java | 328 String annotationType = memberSpecification.annotationType; in setMemberSpecification() local 333 …annotationTypeTextField.setText(annotationType == null ? "" : ClassUtil.externalType(annotationTyp… in setMemberSpecification() 371 String annotationType = annotationTypeTextField.getText(); in getMemberSpecification() local 377 annotationType = in getMemberSpecification() 378 annotationType.equals("") || in getMemberSpecification() 379 annotationType.equals("***") ? null : ClassUtil.internalType(annotationType); in getMemberSpecification() 407 new MemberSpecification(0, 0, annotationType, name, type); in getMemberSpecification()
|
/external/vogar/src/vogar/target/junit/ |
D | Junit4.java | 102 if (Parameters.class.isAssignableFrom(a.annotationType())) { in findParameters() 136 Class<?> annotationClass = a.annotationType(); in isJunit4Test() 160 if (org.junit.Test.class.isAssignableFrom(a.annotationType())) { in isJunit4Test() 174 if (RunWith.class.isAssignableFrom(a.annotationType())) { in getSuiteTests() 188 if (SuiteClasses.class.isAssignableFrom(a.annotationType())) { in getSuiteTests() 265 if (annotation.isAssignableFrom(a.annotationType())) { in invokeMethodWithAnnotation() 275 if (org.junit.Test.class.isAssignableFrom(a.annotationType())) { in meetsExpectations()
|