| /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()
|
| /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/TestParameterInjector/src/main/java/com/google/testing/junit/testparameterinjector/ |
| D | TestParameterAnnotationMethodProcessor.java | 122 Class<? extends Annotation> annotationType = annotationTypeOrigin().annotationType(); in toTestNameString() local 123 String namePattern = annotationType.getAnnotation(TestParameterAnnotation.class).name(); in toTestNameString() 152 annotationWithMetadata.annotation().annotationType(), origin), in create() 168 return annotationType -> Optional.absent(); in getTestParameterValues() 170 return annotationType -> in getTestParameterValues() 176 .filter(matches(annotationType)) in getTestParameterValues() 185 * testInfo}, or {@link Optional#absent()} if the {@code annotationType} is not found. 188 TestInfo testInfo, Class<? extends Annotation> annotationType) { in getTestParameterValue() argument 189 return getTestParameterValues(testInfo).getValue(annotationType); in getTestParameterValue() 196 annotation.annotationType().getAnnotation(TestParameterAnnotation.class); in getParametersAnnotationValues() [all …]
|
| /external/auto/common/src/main/java/com/google/auto/common/ |
| D | SimpleAnnotationMirror.java | 46 private final TypeElement annotationType; field in SimpleAnnotationMirror 51 TypeElement annotationType, Map<String, ? extends AnnotationValue> namedValues) { in SimpleAnnotationMirror() argument 53 annotationType.getKind().equals(ElementKind.ANNOTATION_TYPE), in SimpleAnnotationMirror() 54 "annotationType must be an annotation: %s", in SimpleAnnotationMirror() 55 annotationType); in SimpleAnnotationMirror() local 59 for (ExecutableElement method : methodsIn(annotationType.getEnclosedElements())) { in SimpleAnnotationMirror() 73 annotationType, in SimpleAnnotationMirror() local 78 this.annotationType = annotationType; in SimpleAnnotationMirror() 81 methodsIn(annotationType.getEnclosedElements()).stream() in SimpleAnnotationMirror() 87 * {@code annotationType} has any annotation members, they must have default values. [all …]
|
| /external/guava/android/guava/src/com/google/common/reflect/ |
| D | Parameter.java | 65 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() 88 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType() argument 89 return getDeclaredAnnotationsByType(annotationType); in getAnnotationsByType() 102 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument 103 checkNotNull(annotationType); in getDeclaredAnnotation() [all …]
|
| /external/guava/guava/src/com/google/common/reflect/ |
| D | Parameter.java | 72 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent() argument 73 return getAnnotation(annotationType) != null; in isAnnotationPresent() 78 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation() argument 79 checkNotNull(annotationType); in getAnnotation() 81 if (annotationType.isInstance(annotation)) { in getAnnotation() 82 return annotationType.cast(annotation); in getAnnotation() 96 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType() argument 97 return getDeclaredAnnotationsByType(annotationType); in getAnnotationsByType() 111 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument 112 checkNotNull(annotationType); in getDeclaredAnnotation() [all …]
|
| /external/proguard/src/proguard/ |
| D | MemberSpecification.java | 34 public final String annotationType; field in MemberSpecification 59 * @param annotationType the name of the class that must be an 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() 90 * @param annotationType the name of the class that must be an 110 String annotationType, in ClassSpecification() argument 118 annotationType, in ClassSpecification() 137 * @param annotationType the name of the class that must be an 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/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/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/turbine/java/com/google/turbine/processing/ |
| D | TurbineAnnotationProxy.java | 45 ModelFactory factory, Class<A> annotationType, AnnoInfo anno) { in create() argument 46 ClassLoader loader = annotationType.getClassLoader(); in create() 51 return annotationType.cast( in create() 54 new Class<?>[] {annotationType}, in create() 55 new TurbineAnnotationProxy(factory, loader, annotationType, anno))); in create() 60 private final Class<?> annotationType; field in TurbineAnnotationProxy 64 ModelFactory factory, ClassLoader loader, Class<?> annotationType, AnnoInfo anno) { in TurbineAnnotationProxy() argument 67 this.annotationType = annotationType; in TurbineAnnotationProxy() 77 case "annotationType": in invoke() 79 return annotationType; in invoke() [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/spdx-tools/rdfloader/parser2v2/ |
| D | parse_annotation_test.go | 45 // TestCase 1: invalid input (empty annotationType) 54 t.Errorf("expected an error for invalid annotationType") 62 if ann.AnnotationType != "OTHER" { 63 t.Errorf("expected: OTHER, found: %s", ann.AnnotationType) 71 if ann.AnnotationType != "REVIEW" { 72 t.Errorf("expected: REVIEW, found: %s", ann.AnnotationType) 105 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_other"/> 120 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_unknown"/> 135 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_unknown"/> 151 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_other"/> [all …]
|
| /external/spdx-tools/rdfloader/parser2v3/ |
| D | parse_annotation_test.go | 45 // TestCase 1: invalid input (empty annotationType) 54 t.Errorf("expected an error for invalid annotationType") 62 if ann.AnnotationType != "OTHER" { 63 t.Errorf("expected: OTHER, found: %s", ann.AnnotationType) 71 if ann.AnnotationType != "REVIEW" { 72 t.Errorf("expected: REVIEW, found: %s", ann.AnnotationType) 105 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_other"/> 120 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_unknown"/> 135 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_unknown"/> 151 <spdx:annotationType rdf:resource="http://spdx.org/rdf/terms#annotationType_other"/> [all …]
|
| /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/cronet/base/test/android/javatests/src/org/chromium/base/test/util/ |
| D | AnnotationProcessingUtils.java | 52 Description description, Class<A> annotationType) { in getAnnotations() argument 53 return (List<A>) new AnnotationExtractor(annotationType) in getAnnotations() 60 AnnotatedElement annotatedElement, Class<A> annotationType) { in getAnnotations() argument 61 return (List<A>) new AnnotationExtractor(annotationType) in getAnnotations() 66 Package pkg = annotation.annotationType().getPackage(); in isChromiumAnnotation() 112 -> mAnnotationTypeComparator.compare(t1.annotationType(), t2.annotationType()); in AnnotationExtractor() 176 if (mAnnotationTypes.contains(annotation.annotationType())) { in sweepAnnotations() 181 if (!visited.add(annotation.annotationType())) return; in sweepAnnotations() 185 queueAnnotations(Arrays.asList(annotation.annotationType().getDeclaredAnnotations()), in sweepAnnotations()
|
| /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/spdx-tools/tvsaver/saver2v3/ |
| D | save_annotation_test.go | 18 AnnotationType: "REVIEW", 27 AnnotationType: REVIEW 50 AnnotationType: "REVIEW", 59 AnnotationType: REVIEW 82 AnnotationType: "REVIEW", 91 AnnotationType: REVIEW
|
| /external/spdx-tools/tvsaver/saver2v2/ |
| D | save_annotation_test.go | 18 AnnotationType: "REVIEW", 27 AnnotationType: REVIEW 50 AnnotationType: "REVIEW", 59 AnnotationType: REVIEW 82 AnnotationType: "REVIEW", 91 AnnotationType: REVIEW
|
| /external/spdx-tools/tvsaver/saver2v1/ |
| D | save_annotation_test.go | 18 AnnotationType: "REVIEW", 27 AnnotationType: REVIEW 50 AnnotationType: "REVIEW", 59 AnnotationType: REVIEW 82 AnnotationType: "REVIEW", 91 AnnotationType: REVIEW
|
| /external/robolectric/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/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()
|