/external/guice/core/src/com/google/inject/ |
D | Key.java | 72 protected Key(Class<? extends Annotation> annotationType) { in Key() argument 73 this.annotationStrategy = strategyFor(annotationType); in Key() 218 public static <T> Key<T> get(Class<T> type, Class<? extends Annotation> annotationType) { in get() argument 219 return new Key<T>(type, strategyFor(annotationType)); in get() 233 public static Key<?> get(Type type, Class<? extends Annotation> annotationType) { in get() argument 234 return new Key<Object>(type, strategyFor(annotationType)); in get() 249 TypeLiteral<T> typeLiteral, Class<? extends Annotation> annotationType) { in get() argument 250 return new Key<T>(typeLiteral, strategyFor(annotationType)); in get() 316 Class<? extends Annotation> annotationType = annotation.annotationType(); in strategyFor() local 317 ensureRetainedAtRuntime(annotationType); in strategyFor() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | Annotations.java | 57 public static boolean isMarker(Class<? extends Annotation> annotationType) { in isMarker() argument 58 return annotationType.getDeclaredMethods().length == 0; in isMarker() 61 public static boolean isAllDefaultMethods(Class<? extends Annotation> annotationType) { in isAllDefaultMethods() argument 63 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( in generateAnnotationImpl() [all …]
|
D | ScopeBindingProcessor.java | 40 Class<? extends Annotation> annotationType = in visit() local 43 if (!Annotations.isScopeAnnotation(annotationType)) { in visit() 44 errors.missingScopeAnnotation(annotationType); in visit() 48 if (!Annotations.isRetainedAtRuntime(annotationType)) { in visit() 49 errors.missingRuntimeRetention(annotationType); in visit() 53 ScopeBinding existing = injector.state.getScopeBinding(annotationType); in visit() 56 errors.duplicateScopes(existing, annotationType, scope); in visit() 59 injector.state.putScopeBinding(annotationType, command); in visit()
|
D | ProvidesMethodScanner.java | 121 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class); in findMapKeyAnnotation() 130 Method valueMethod = annotation.annotationType().getDeclaredMethod("value"); in findMapKeyAnnotation() 134 annotation.annotationType()); in findMapKeyAnnotation() 140 annotation.annotationType()); in findMapKeyAnnotation() 152 if (!mapKeyAnnotation.annotationType().getAnnotation(MapKey.class).unwrapValue()) { in typeAndValueOfMapKey() 153 return new TypeAndValue(TypeLiteral.get(mapKeyAnnotation.annotationType()), mapKeyAnnotation); in typeAndValueOfMapKey() 156 Method valueMethod = mapKeyAnnotation.annotationType().getDeclaredMethod("value"); in typeAndValueOfMapKey() 159 TypeLiteral.get(mapKeyAnnotation.annotationType()).getReturnType(valueMethod); in typeAndValueOfMapKey()
|
D | ExposureBuilder.java | 44 public void annotatedWith(Class<? extends Annotation> annotationType) { in annotatedWith() argument 45 Preconditions.checkNotNull(annotationType, "annotationType"); in annotatedWith() 47 key = Key.get(key.getTypeLiteral(), annotationType); in annotatedWith()
|
/external/dagger2/java/dagger/internal/codegen/ |
D | SimpleAnnotationMirror.java | 38 private final TypeElement annotationType; field in SimpleAnnotationMirror 43 TypeElement annotationType, Map<String, ? extends AnnotationValue> namedValues) { in SimpleAnnotationMirror() argument 45 annotationType.getKind().equals(ElementKind.ANNOTATION_TYPE), in SimpleAnnotationMirror() 47 annotationType); in SimpleAnnotationMirror() local 49 FluentIterable.from(methodsIn(annotationType.getEnclosedElements())) in SimpleAnnotationMirror() 54 annotationType, in SimpleAnnotationMirror() local 56 this.annotationType = annotationType; in SimpleAnnotationMirror() 60 methodsIn(annotationType.getEnclosedElements()), in SimpleAnnotationMirror() 67 return MoreTypes.asDeclared(annotationType.asType()); in getAnnotationType() 77 StringBuilder builder = new StringBuilder("@").append(annotationType.getQualifiedName()); in toString() [all …]
|
D | AnnotationCreatorGenerator.java | 90 ClassName nameGeneratedType(TypeElement annotationType) { in nameGeneratedType() argument 91 return getAnnotationCreatorClassName(annotationType); in nameGeneratedType() 95 Element originatingElement(TypeElement annotationType) { in originatingElement() argument 96 return annotationType; in originatingElement() 100 Optional<TypeSpec.Builder> write(ClassName generatedTypeName, TypeElement annotationType) { in write() argument 106 for (TypeElement annotationElement : annotationsToCreate(annotationType)) { in write()
|
/external/guava/android/guava/src/com/google/common/reflect/ |
D | Parameter.java | 59 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent() argument 60 return getAnnotation(annotationType) != null; in isAnnotationPresent() 65 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation() argument 66 checkNotNull(annotationType); in getAnnotation() 68 if (annotationType.isInstance(annotation)) { in getAnnotation() 69 return annotationType.cast(annotation); in getAnnotation() 82 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType() argument 83 return getDeclaredAnnotationsByType(annotationType); in getAnnotationsByType() 96 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument 97 checkNotNull(annotationType); in getDeclaredAnnotation() [all …]
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Parameter.java | 66 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent() argument 67 return getAnnotation(annotationType) != null; in isAnnotationPresent() 71 public <A extends Annotation> @Nullable 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() 103 public <A extends Annotation> @Nullable A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument 104 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()
|
D | ClassSpecificationVisitorFactory.java | 226 String annotationType = classSpecification.annotationType; in createClassPoolVisitor() local 228 if (annotationType != null) in createClassPoolVisitor() 233 new AnnotationTypeFilter(annotationType, in createClassPoolVisitor() 480 if (memberSpecification.annotationType != null) in createClassVisitor() 485 new AnnotationTypeFilter(memberSpecification.annotationType, in createClassVisitor()
|
/external/guice/core/src/com/google/inject/matcher/ |
D | Matchers.java | 97 private static void checkForRuntimeRetention(Class<? extends Annotation> annotationType) { in checkForRuntimeRetention() argument 98 Retention retention = annotationType.getAnnotation(Retention.class); in checkForRuntimeRetention() 102 annotationType.getSimpleName()); in checkForRuntimeRetention() 107 final Class<? extends Annotation> annotationType) { in annotatedWith() argument 108 return new AnnotatedWithType(annotationType); in annotatedWith() 113 private final Class<? extends Annotation> annotationType; field in Matchers.AnnotatedWithType 115 public AnnotatedWithType(Class<? extends Annotation> annotationType) { in AnnotatedWithType() argument 116 this.annotationType = checkNotNull(annotationType, "annotation type"); in AnnotatedWithType() 117 checkForRuntimeRetention(annotationType); in AnnotatedWithType() 122 return element.isAnnotationPresent(annotationType); in matches() [all …]
|
/external/junit/src/main/java/org/junit/experimental/theories/ |
D | ParameterSignature.java | 102 public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType) { in findDeepAnnotation() argument 104 return findDeepAnnotation(annotations2, annotationType, 3); in findDeepAnnotation() 108 Annotation[] annotations, Class<T> annotationType, int depth) { in findDeepAnnotation() argument 113 if (annotationType.isInstance(each)) { in findDeepAnnotation() 114 return annotationType.cast(each); in findDeepAnnotation() 116 Annotation candidate = findDeepAnnotation(each.annotationType() in findDeepAnnotation() 117 .getAnnotations(), annotationType, depth - 1); in findDeepAnnotation() 119 return annotationType.cast(candidate); in findDeepAnnotation() 126 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation() argument 128 if (annotationType.isInstance(each)) { in getAnnotation() [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()
|
D | LaunchSuite.java | 127 final String annotationType) in CustomizedSuite() argument 247 final String annotationType, in MethodsSuite() argument 249 super(projectName, className, parameters, annotationType); in MethodsSuite() 301 final String annotationType, in ClassesAndMethodsSuite() argument 303 super(projectName, "Custom suite", parameters, annotationType); in ClassesAndMethodsSuite() 378 final String annotationType, in ClassListSuite() argument 380 super(projectName, "Custom suite", parameters, annotationType); in ClassListSuite()
|
/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() 54 return annotationType; in getAnnotationType() 68 binder.withSource(getSource()).bindScope(annotationType, scope); in applyTo()
|
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/ |
D | AnnotationProcessingUtils.java | 53 Description description, Class<A> annotationType) { in getAnnotations() argument 54 return (List<A>) new AnnotationExtractor(annotationType) in getAnnotations() 61 AnnotatedElement annotatedElement, Class<A> annotationType) { in getAnnotations() argument 62 return (List<A>) new AnnotationExtractor(annotationType) in getAnnotations() 67 Package pkg = annotation.annotationType().getPackage(); in isChromiumAnnotation() 113 -> mAnnotationTypeComparator.compare(t1.annotationType(), t2.annotationType()); in AnnotationExtractor() 177 if (mAnnotationTypes.contains(annotation.annotationType())) { in sweepAnnotations() 182 if (!visited.add(annotation.annotationType())) return; in sweepAnnotations() 186 queueAnnotations(Arrays.asList(annotation.annotationType().getDeclaredAnnotations()), in sweepAnnotations()
|
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
D | FactoryModuleBuilder.java | 263 Class<T> source, Class<? extends Annotation> annotationType, Class<? extends T> target) { in implement() argument 264 return implement(source, annotationType, TypeLiteral.get(target)); in implement() 270 Class<? extends Annotation> annotationType, in implement() argument 272 return implement(TypeLiteral.get(source), annotationType, target); in implement() 278 Class<? extends Annotation> annotationType, in implement() argument 280 return implement(source, annotationType, TypeLiteral.get(target)); in implement() 286 Class<? extends Annotation> annotationType, in implement() argument 288 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/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/ |
D | Validator.java | 29 final protected TypeElement annotationType; field in Validator 62 …alidator(RobolectricModel.Builder modelBuilder, ProcessingEnvironment env, String annotationType) { in Validator() argument 69 this.annotationType = elements.getTypeElement(annotationType); in Validator() 74 currentAnnotation = Helpers.getAnnotationMirror(types, currentElement, annotationType); in getCurrentAnnotation() 103 return annotationType; in getAnnotationType()
|
/external/junit-params/src/main/java/junitparams/internal/annotation/ |
D | FrameworkMethodAnnotations.java | 27 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation() argument 28 return frameworkMethod.getAnnotation(annotationType); in getAnnotation() 46 customParameters = annotation.annotationType().getAnnotation(CustomParameters.class); in getCustomParameters()
|
/external/guice/core/src/com/google/inject/multibindings/ |
D | Multibinder.java | 125 Binder binder, TypeLiteral<T> type, Class<? extends Annotation> annotationType) { in newSetBinder() argument 126 return newSetBinder(binder, Key.get(type, annotationType)); in newSetBinder() 144 Binder binder, Class<T> type, Class<? extends Annotation> annotationType) { in newSetBinder() argument 145 return newSetBinder(binder, Key.get(type, annotationType)); in newSetBinder()
|
D | MapBinder.java | 142 Class<? extends Annotation> annotationType) { in newMapBinder() argument 144 newRealMapBinder(binder.skipSources(MapBinder.class), keyType, valueType, annotationType)); in newMapBinder() 155 Class<? extends Annotation> annotationType) { in newMapBinder() argument 157 binder, TypeLiteral.get(keyType), TypeLiteral.get(valueType), annotationType); in newMapBinder()
|
/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()
|