| /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/junit5/src/main/java/com/google/testing/junit/testparameterinjector/junit5/ |
| D | GenericParameterContext.java | 60 /* getAnnotationsFunction= */ annotationType -> { in create() 62 return ImmutableList.copyOf(field.getAnnotationsByType(annotationType)); in create() 65 ImmutableList.copyOf(field.getAnnotations()), annotationType); in create() 77 /* getAnnotationsFunction= */ annotationType -> 78 ImmutableList.copyOf(parameter.getAnnotationsByType(annotationType)), 86 /* getAnnotationsFunction= */ annotationType -> 87 getAnnotationsFallback(ImmutableList.copyOf(annotationsOnParameter), annotationType), 94 /* getAnnotationsFunction= */ annotationType -> 95 getAnnotationsFallback(ImmutableList.of(), annotationType), 106 <A extends Annotation> A getAnnotation(Class<A> annotationType) { [all …]
|
| D | TestParameterAnnotationMethodProcessor.java | 137 annotationWithMetadata.annotation().annotationType(), origin), in create() 155 return annotationType -> Optional.absent(); in getTestParameterValues() 157 return annotationType -> in getTestParameterValues() 166 .annotationType() in getTestParameterValues() 167 .equals(annotationType)) in getTestParameterValues() 175 * testInfo}, or {@link Optional#absent()} if the {@code annotationType} is not found. 178 TestInfo testInfo, Class<? extends Annotation> annotationType) { in getTestParameterValue() argument 179 return getTestParameterValues(testInfo).getValue(annotationType); in getTestParameterValue() 186 annotation.annotationType().getAnnotation(TestParameterAnnotation.class); in getParametersAnnotationValues() 226 abstract Class<? extends Annotation> annotationType(); in annotationType() method in TestParameterAnnotationMethodProcessor.AnnotationTypeOrigin [all …]
|
| /external/TestParameterInjector/junit4/src/main/java/com/google/testing/junit/testparameterinjector/ |
| D | GenericParameterContext.java | 60 /* getAnnotationsFunction= */ annotationType -> { in create() 62 return ImmutableList.copyOf(field.getAnnotationsByType(annotationType)); in create() 65 ImmutableList.copyOf(field.getAnnotations()), annotationType); in create() 77 /* getAnnotationsFunction= */ annotationType -> 78 ImmutableList.copyOf(parameter.getAnnotationsByType(annotationType)), 86 /* getAnnotationsFunction= */ annotationType -> 87 getAnnotationsFallback(ImmutableList.copyOf(annotationsOnParameter), annotationType), 94 /* getAnnotationsFunction= */ annotationType -> 95 getAnnotationsFallback(ImmutableList.of(), annotationType), 106 <A extends Annotation> A getAnnotation(Class<A> annotationType) { [all …]
|
| D | TestParameterAnnotationMethodProcessor.java | 137 annotationWithMetadata.annotation().annotationType(), origin), in create() 155 return annotationType -> Optional.absent(); in getTestParameterValues() 157 return annotationType -> in getTestParameterValues() 166 .annotationType() in getTestParameterValues() 167 .equals(annotationType)) in getTestParameterValues() 175 * testInfo}, or {@link Optional#absent()} if the {@code annotationType} is not found. 178 TestInfo testInfo, Class<? extends Annotation> annotationType) { in getTestParameterValue() argument 179 return getTestParameterValues(testInfo).getValue(annotationType); in getTestParameterValue() 186 annotation.annotationType().getAnnotation(TestParameterAnnotation.class); in getParametersAnnotationValues() 226 abstract Class<? extends Annotation> annotationType(); in annotationType() method in TestParameterAnnotationMethodProcessor.AnnotationTypeOrigin [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 | 73 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent() argument 74 return getAnnotation(annotationType) != null; in isAnnotationPresent() 79 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation() argument 80 checkNotNull(annotationType); in getAnnotation() 82 if (annotationType.isInstance(annotation)) { in getAnnotation() 83 return annotationType.cast(annotation); in getAnnotation() 98 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType() argument 99 return getDeclaredAnnotationsByType(annotationType); in getAnnotationsByType() 113 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument 114 checkNotNull(annotationType); in getDeclaredAnnotation() [all …]
|
| /external/guava/guava/src/com/google/common/reflect/ |
| D | Parameter.java | 75 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent() argument 76 return getAnnotation(annotationType) != null; in isAnnotationPresent() 81 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation() argument 82 checkNotNull(annotationType); in getAnnotation() 84 if (annotationType.isInstance(annotation)) { in getAnnotation() 85 return annotationType.cast(annotation); in getAnnotation() 100 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType() argument 101 return getDeclaredAnnotationsByType(annotationType); in getAnnotationsByType() 115 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) { in getDeclaredAnnotation() argument 116 checkNotNull(annotationType); in getDeclaredAnnotation() [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/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/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/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/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/google-cloud-java/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ |
| D | AnnotationType.java | 21 /** Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationType} */ 22 public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { enum 309 public static AnnotationType valueOf(int value) { in valueOf() 317 public static AnnotationType forNumber(int value) { in forNumber() 352 public static com.google.protobuf.Internal.EnumLiteMap<AnnotationType> internalGetValueMap() { in internalGetValueMap() 356 private static final com.google.protobuf.Internal.EnumLiteMap<AnnotationType> internalValueMap = 357 new com.google.protobuf.Internal.EnumLiteMap<AnnotationType>() { 358 public AnnotationType findValueByNumber(int number) { 359 return AnnotationType.forNumber(number); 381 private static final AnnotationType[] VALUES = values(); [all …]
|
| /external/cronet/base/test/android/javatests/src/org/chromium/base/test/util/ |
| D | AnnotationProcessingUtils.java | 52 Description description, Class<A> annotationType) { in getAnnotations() argument 54 new AnnotationExtractor(annotationType).getMatchingAnnotations(description); in getAnnotations() 60 AnnotatedElement annotatedElement, Class<A> annotationType) { in getAnnotations() argument 62 new AnnotationExtractor(annotationType).getMatchingAnnotations(annotatedElement); in getAnnotations() 66 Package pkg = annotation.annotationType().getPackage(); in isChromiumAnnotation() 114 t1.annotationType(), t2.annotationType()); in AnnotationExtractor() 180 if (mAnnotationTypes.contains(annotation.annotationType())) { in sweepAnnotations() 185 if (!visited.add(annotation.annotationType())) return; in sweepAnnotations() 190 Arrays.asList(annotation.annotationType().getDeclaredAnnotations()), in sweepAnnotations()
|
| /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/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/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/robolectric/processor/src/main/java/org/robolectric/annotation/processing/validator/ |
| D | Validator.java | 27 protected final TypeElement annotationType; field in Validator 62 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()
|