/external/guava/guava-tests/test/com/google/common/reflect/ |
D | ElementTest.java | 42 assertTrue(element.isAnnotationPresent(Tested.class)); in testPrivateField() 53 assertTrue(element.isAnnotationPresent(Tested.class)); in testPackagePrivateField() 64 assertTrue(element.isAnnotationPresent(Tested.class)); in testProtectedField() 75 assertTrue(element.isAnnotationPresent(Tested.class)); in testPublicField() 82 assertTrue(element.isAnnotationPresent(Tested.class)); in testFinalField() 88 assertTrue(element.isAnnotationPresent(Tested.class)); in testStaticField() 107 assertTrue(element.isAnnotationPresent(Tested.class)); in testConstructor() 115 assertTrue(element.isAnnotationPresent(Tested.class)); in testAbstractMethod() 123 assertTrue(element.isAnnotationPresent(Tested.class)); in testOverridableMethod() 133 assertTrue(element.isAnnotationPresent(Tested.class)); in testPrivateMethod() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | ElementTest.java | 42 assertTrue(element.isAnnotationPresent(Tested.class)); in testPrivateField() 53 assertTrue(element.isAnnotationPresent(Tested.class)); in testPackagePrivateField() 64 assertTrue(element.isAnnotationPresent(Tested.class)); in testProtectedField() 75 assertTrue(element.isAnnotationPresent(Tested.class)); in testPublicField() 82 assertTrue(element.isAnnotationPresent(Tested.class)); in testFinalField() 88 assertTrue(element.isAnnotationPresent(Tested.class)); in testStaticField() 107 assertTrue(element.isAnnotationPresent(Tested.class)); in testConstructor() 115 assertTrue(element.isAnnotationPresent(Tested.class)); in testAbstractMethod() 123 assertTrue(element.isAnnotationPresent(Tested.class)); in testOverridableMethod() 133 assertTrue(element.isAnnotationPresent(Tested.class)); in testPrivateMethod() [all …]
|
/external/dagger2/java/dagger/internal/codegen/base/ |
D | ContributionType.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 59 if (isAnnotationPresent(element, IntoMap.class)) { in fromBindingElement() 61 } else if (isAnnotationPresent(element, IntoSet.class)) { in fromBindingElement() 63 } else if (isAnnotationPresent(element, ElementsIntoSet.class)) { in fromBindingElement()
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ModuleDescriptor.java | 21 import static com.google.auto.common.MoreElements.isAnnotationPresent; 32 import static dagger.internal.codegen.langmodel.DaggerElements.isAnnotationPresent; 150 if (isAnnotationPresent(moduleMethod, Provides.class)) { in createUncached() 153 if (isAnnotationPresent(moduleMethod, Produces.class)) { in createUncached() 156 if (isAnnotationPresent(moduleMethod, Binds.class)) { in createUncached() 159 if (isAnnotationPresent(moduleMethod, Multibinds.class)) { in createUncached() 163 if (isAnnotationPresent(moduleMethod, BindsOptionalOf.class)) { in createUncached() 203 if (isAnnotationPresent(method, Provides.class)) { in collectCompanionModuleBindings() 206 if (isAnnotationPresent(method, Produces.class)) { in collectCompanionModuleBindings() 249 .filter(method -> isAnnotationPresent(method, contributesAndroidInjector.asType())) in implicitlyIncludedModules()
|
D | AssistedInjectionAnnotations.java | 20 import static com.google.auto.common.MoreElements.isAnnotationPresent; 79 && isAnnotationPresent(getOnlyElement(injectConstructors), AssistedInject.class); in isAssistedInjectionType() 84 return isAnnotationPresent(element, AssistedFactory.class); in isAssistedFactoryType() 145 .filter(constructor -> isAnnotationPresent(constructor, AssistedInject.class)) in assistedInjectedConstructors() 163 return isAnnotationPresent(MoreElements.asVariable(param), Assisted.class); in isAssistedParameter() 280 if (isAnnotationPresent(parameter, Assisted.class)) { in assistedInjectAssistedParameters()
|
D | OptionalBindingDeclaration.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 61 checkArgument(isAnnotationPresent(method, BindsOptionalOf.class)); in forMethod()
|
/external/testng/src/main/java/org/testng/internal/annotations/ |
D | AnnotationHelper.java | 219 boolean hasClassAnnotation = isAnnotationPresent(annotationFinder, cls, annotationClass); in findMethodsWithAnnotation() 222 boolean hasMethodAnnotation = isAnnotationPresent(annotationFinder, m, annotationClass); in findMethodsWithAnnotation() 224 isAnnotationPresent(annotationFinder, m, IFactoryAnnotation.class) || in findMethodsWithAnnotation() 225 isAnnotationPresent(annotationFinder, m, ITestAnnotation.class) || in findMethodsWithAnnotation() 226 isAnnotationPresent(annotationFinder, m, CONFIGURATION_CLASSES); in findMethodsWithAnnotation() 234 if (isAnnotationPresent(annotationFinder, m, IConfigurationAnnotation.class) && in findMethodsWithAnnotation() 235 isAnnotationPresent(annotationFinder, cls, ITestAnnotation.class)) in findMethodsWithAnnotation() 286 private static boolean isAnnotationPresent(IAnnotationFinder annotationFinder, in isAnnotationPresent() method in AnnotationHelper 298 private static boolean isAnnotationPresent(IAnnotationFinder annotationFinder, Method m, in isAnnotationPresent() method in AnnotationHelper 303 private static boolean isAnnotationPresent(IAnnotationFinder annotationFinder, Class<?> cls, in isAnnotationPresent() method in AnnotationHelper
|
/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/ |
D | SubclassByteBuddyMockMakerTest.java | 62 assertThat(proxy.getClass().isAnnotationPresent(SampleAnnotation.class)).isTrue(); in mock_type_with_annotations() 65 …assertThat(proxy.getClass().getMethod("sampleMethod").isAnnotationPresent(SampleAnnotation.class))… in mock_type_with_annotations() 77 assertThat(proxy.getClass().isAnnotationPresent(SampleAnnotation.class)).isFalse(); in mock_type_without_annotations() 78 …assertThat(proxy.getClass().getMethod("sampleMethod").isAnnotationPresent(SampleAnnotation.class))… in mock_type_without_annotations()
|
/external/auto/factory/src/main/java/com/google/auto/factory/processor/ |
D | ProvidedChecker.java | 18 import static com.google.auto.common.MoreElements.isAnnotationPresent; 38 checkArgument(isAnnotationPresent(element, Provided.class), "%s not annoated with @Provided", in checkProvidedParameter() 76 return isAnnotationPresent(e, AutoFactory.class); in annotatedWithAutoFactory()
|
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/ |
D | CommandLineFlags.java | 132 if (field.isAnnotationPresent(Rule.class)) { in updateFlagsForElement() 141 if (method.isAnnotationPresent(Rule.class)) { in updateFlagsForElement() 158 if (element.isAnnotationPresent(CommandLineFlags.Add.class)) { in updateFlagsForElement() 163 if (element.isAnnotationPresent(CommandLineFlags.Remove.class)) { in updateFlagsForElement()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | InjectValidator.java | 20 import static com.google.auto.common.MoreElements.isAnnotationPresent; 143 if (isAnnotationPresent(constructorElement, Inject.class) in validateConstructorUncached() 144 && isAnnotationPresent(constructorElement, AssistedInject.class)) { in validateConstructorUncached() 149 isAnnotationPresent(constructorElement, Inject.class) ? Inject.class : AssistedInject.class; in validateConstructorUncached() 321 if (MoreElements.isAnnotationPresent(element, Inject.class)) { in validateMembersInjectionType() 330 if (MoreElements.isAnnotationPresent(element, Inject.class)) { in validateMembersInjectionType() 362 if (isAnnotationPresent(element, Inject.class) in validateType() 363 || isAnnotationPresent(element, AssistedInject.class)) { in validateType()
|
D | ComponentCreatorValidator.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 135 if (!isAnnotationPresent(component, annotation.componentAnnotation())) { in validate() 260 boolean methodIsBindsInstance = isAnnotationPresent(method, BindsInstance.class); in validateSetterMethod() 261 boolean parameterIsBindsInstance = isAnnotationPresent(parameter, BindsInstance.class); in validateSetterMethod() 311 if (!isAnnotationPresent(parameter, BindsInstance.class) in validateFactoryMethod() 336 if (isAnnotationPresent(method, BindsInstance.class)) { in validateFactoryMethodReturnType()
|
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/ |
D | DaggerMethodScanner.java | 54 if (providesMethod.isAnnotationPresent(IntoSet.class)) { in prepareMethod() 56 } else if (providesMethod.isAnnotationPresent(ElementsIntoSet.class)) { in prepareMethod() 59 } else if (providesMethod.isAnnotationPresent(IntoMap.class)) { in prepareMethod()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithAnnotations.java | 133 public default boolean isAnnotationPresent(String annotationName) { in isAnnotationPresent() method 143 public default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() method 144 return isAnnotationPresent(annotationClass.getSimpleName()); in isAnnotationPresent()
|
/external/dagger2/java/dagger/internal/codegen/ |
D | ModuleProcessingStep.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 134 if (isAnnotationPresent(method, Provides.class)) { in generateForMethodsIn() 136 } else if (isAnnotationPresent(method, Produces.class)) { in generateForMethodsIn() 138 } else if (isAnnotationPresent(method, Binds.class)) { in generateForMethodsIn()
|
/external/dagger2/java/dagger/internal/codegen/kotlin/ |
D | KotlinMetadataFactory.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 53 if (!isAnnotationPresent(enclosingElement, Metadata.class)) { in create()
|
D | KotlinMetadataUtil.java | 20 import static com.google.auto.common.MoreElements.isAnnotationPresent; 58 return isAnnotationPresent(closestEnclosingTypeElement(element), Metadata.class); in hasMetadata() 155 return isAnnotationPresent(element, JvmStatic.class); in isJvmStaticPresent()
|
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/ |
D | InitializePropertyMetaModelsStatementsGenerator.java | 67 return field.isAnnotationPresent(NonEmptyProperty.class); in isNonEmpty() 71 return method.isAnnotationPresent(NonEmptyProperty.class); in isNonEmpty() 75 return field.isAnnotationPresent(OptionalProperty.class); in isOptional()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithAnnotations.java | 194 default boolean isAnnotationPresent(String annotationName) { in isAnnotationPresent() method 204 default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() method 205 return isAnnotationPresent(annotationClass.getSimpleName()); in isAnnotationPresent()
|
/external/guice/extensions/mini/src/com/google/inject/mini/ |
D | MiniGuice.java | 139 if (method.isAnnotationPresent(com.google.inject.Provides.class)) { in install() 171 boolean singleton = method.isAnnotationPresent(javax.inject.Singleton.class); in addProviderMethodBinding() 199 if (!field.isAnnotationPresent(javax.inject.Inject.class)) { in addJitBinding() 217 if (!constructor.isAnnotationPresent(javax.inject.Inject.class)) { in addJitBinding() 270 boolean singleton = type.isAnnotationPresent(javax.inject.Singleton.class); in addJitBinding() 318 if (!a.annotationType().isAnnotationPresent(javax.inject.Qualifier.class)) { in key()
|
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
D | DeprecatedAPIChecker.java | 110 …compareDeprecated(isAPIDeprecated(api), cls.isAnnotationPresent(Deprecated.class), clsName, null, … in checkClass() 126 …compareDeprecated(isAPIDeprecated(api), f.isAnnotationPresent(Deprecated.class), clsName, fName, "… in checkClass() 157 … compareDeprecated(isAPIDeprecated(api), ctor.isAnnotationPresent(Deprecated.class), clsName, in checkClass() 179 …compareDeprecated(isAPIDeprecated(api), mtd.isAnnotationPresent(Deprecated.class), clsName, mtdName in checkClass() 201 …compareDeprecated(isAPIDeprecated(api), cls.isAnnotationPresent(Deprecated.class), enumName, null,… in checkEnum() 217 …compareDeprecated(isAPIDeprecated(api), ec.isAnnotationPresent(Deprecated.class), enumName, ecName, in checkEnum() 239 …compareDeprecated(isAPIDeprecated(api), mtd.isAnnotationPresent(Deprecated.class), enumName, mtdNa… in checkEnum()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/ |
D | SpyAnnotationEngine.java | 52 … if (field.isAnnotationPresent(Spy.class) && !field.isAnnotationPresent(InjectMocks.class)) { in process() 141 if (field.isAnnotationPresent(u)) { in assertNoIncompatibleAnnotations()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/ |
D | MockScanner.java | 79 return field.isAnnotationPresent(Spy.class) || field.isAnnotationPresent(Mock.class); in isAnnotatedByMockOrSpy()
|
/external/auto/value/src/test/java/com/google/auto/value/extension/memoized/ |
D | MemoizedTest.java | 358 .isAnnotationPresent(javax.annotation.Nullable.class)) in copyAnnotations() 363 .isAnnotationPresent(javax.annotation.Nullable.class)) in copyAnnotations() 370 assertThat(nullable.isAnnotationPresent(javax.annotation.Nullable.class)).isTrue(); in nullableHasAnnotation() 378 assertThat(returnType.isAnnotationPresent( in nullableWithTypeAnnotationHasAnnotation() 393 assertThat(paramType.isAnnotationPresent( in nullableConstructorParameter()
|
/external/dagger2/java/dagger/model/ |
D | Scope.java | 19 import static com.google.auto.common.MoreElements.isAnnotationPresent; 69 return isAnnotationPresent(scopeAnnotationType, javax.inject.Scope.class); in isScope()
|