Home
last modified time | relevance | path

Searched refs:isAnnotationPresent (Results 1 – 25 of 78) sorted by relevance

1234

/external/guava/guava-tests/test/com/google/common/reflect/
DElementTest.java44 assertTrue(element.isAnnotationPresent(Tested.class)); in testPrivateField()
55 assertTrue(element.isAnnotationPresent(Tested.class)); in testPackagePrivateField()
66 assertTrue(element.isAnnotationPresent(Tested.class)); in testProtectedField()
77 assertTrue(element.isAnnotationPresent(Tested.class)); in testPublicField()
84 assertTrue(element.isAnnotationPresent(Tested.class)); in testFinalField()
90 assertTrue(element.isAnnotationPresent(Tested.class)); in testStaticField()
109 assertTrue(element.isAnnotationPresent(Tested.class)); in testConstructor()
117 assertTrue(element.isAnnotationPresent(Tested.class)); in testAbstractMethod()
125 assertTrue(element.isAnnotationPresent(Tested.class)); in testOverridableMethod()
135 assertTrue(element.isAnnotationPresent(Tested.class)); in testPrivateMethod()
[all …]
/external/testng/src/main/java/org/testng/internal/annotations/
DAnnotationHelper.java219 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/
DSubclassByteBuddyMockMakerTest.java62 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/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/
DDaggerMethodScanner.java54 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/
DNodeWithAnnotations.java133 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/guice/extensions/mini/src/com/google/inject/mini/
DMiniGuice.java139 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/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithAnnotations.java183 default boolean isAnnotationPresent(String annotationName) { in isAnnotationPresent() method
193 default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() method
194 return isAnnotationPresent(annotationClass.getSimpleName()); in isAnnotationPresent()
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DDeprecatedAPIChecker.java110 …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/javaparser/javaparser-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DInitializePropertyMetaModelsStatementsGenerator.java69 return field.isAnnotationPresent(NonEmptyProperty.class); in isNonEmpty()
73 return method.isAnnotationPresent(NonEmptyProperty.class); in isNonEmpty()
77 return field.isAnnotationPresent(OptionalProperty.class); in isOptional()
DNodeMetaModelGenerator.java93 if (method.isAnnotationPresent(DerivedProperty.class)) { in generate()
115 reflectionField.isAnnotationPresent(InternalProperty.class); in fieldShouldBeIgnored()
/external/mockito/src/main/java/org/mockito/internal/configuration/
DSpyAnnotationEngine.java52 … if (field.isAnnotationPresent(Spy.class) && !field.isAnnotationPresent(InjectMocks.class)) { in process()
141 if (field.isAnnotationPresent(u)) { in assertNoIncompatibleAnnotations()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DModuleDescriptor.java21 import static com.google.auto.common.MoreElements.isAnnotationPresent;
73 if (isAnnotationPresent(moduleMethod, Provides.class)) {
77 if (isAnnotationPresent(moduleMethod, Produces.class)) {
DMembersInjectionBinding.java48 import static com.google.auto.common.MoreElements.isAnnotationPresent;
150 checkArgument(isAnnotationPresent(fieldElement, Inject.class)); in injectionSiteForInjectField()
274 if (!isAnnotationPresent(injectionSite, Inject.class) in shouldBeInjected()
311 return (isAnnotationPresent(e, Inject.class)
DModuleValidator.java49 import static com.google.auto.common.MoreElements.isAnnotationPresent;
100 if (isAnnotationPresent(moduleMethod, methodClass)) { in validate()
181 return MoreElements.isAnnotationPresent(element, otherClass); in validateReferencedModules()
260 if (isAnnotationPresent(superclassMethod, methodClass)) { in validateProvidesOverrides()
DInjectConstructorValidator.java31 import static com.google.auto.common.MoreElements.isAnnotationPresent;
95 return isAnnotationPresent(input, Inject.class); in validate()
DConfigurationAnnotations.java64 return MoreElements.isAnnotationPresent(componentDefinitionType, Component.class) in isComponent()
65 || MoreElements.isAnnotationPresent(componentDefinitionType, ProductionComponent.class); in isComponent()
199 if (MoreElements.isAnnotationPresent(element, annotation)) { in enclosedBuilders()
DModuleProcessingStep.java36 import static com.google.auto.common.MoreElements.isAnnotationPresent;
103 if (isAnnotationPresent(methodElement, Provides.class)) { in process()
DProducerModuleProcessingStep.java37 import static com.google.auto.common.MoreElements.isAnnotationPresent;
106 if (isAnnotationPresent(methodElement, Produces.class)) { in process()
DProvisionBinding.java37 import static com.google.auto.common.MoreElements.isAnnotationPresent;
96 checkArgument(isAnnotationPresent(constructorElement, Inject.class)); in forInjectConstructor()
151 && (isAnnotationPresent(enclosedElement, Inject.class))) { in membersInjectionRequest()
DComponentDescriptor.java53 import static com.google.auto.common.MoreElements.isAnnotationPresent;
93 if (MoreElements.isAnnotationPresent(element, kind.annotationType())) { in forAnnotatedElement()
381 } else if (isAnnotationPresent(MoreTypes.asElement(returnType), Subcomponent.class)) {
386 } else if (isAnnotationPresent(MoreTypes.asElement(returnType),
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/
DMockScanner.java79 return field.isAnnotationPresent(Spy.class) || field.isAnnotationPresent(Mock.class); in isAnnotatedByMockOrSpy()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DFacadeManager.java63 if (method.isAnnotationPresent(RpcDeprecated.class)) { in invoke()
67 } else if (method.isAnnotationPresent(RpcMinSdk.class)) { in invoke()
/external/guava/guava/src/com/google/common/reflect/
DElement.java52 @Override public final boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() method in Element
53 return accessibleObject.isAnnotationPresent(annotationClass); in isAnnotationPresent()
/external/sl4a/ScriptingLayer/src/com/googlecode/android_scripting/facade/
DFacadeConfiguration.java198 if (method.isAnnotationPresent(RpcDeprecated.class)) { in collectSupportedMethodDescriptors()
200 } else if (method.isAnnotationPresent(RpcMinSdk.class)) { in collectSupportedMethodDescriptors()
215 if (method.isAnnotationPresent(RpcStartEvent.class)) { in collectStartEventMethodDescriptors()
231 if (method.isAnnotationPresent(RpcStopEvent.class)) { in collectStopEventMethodDescriptors()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/provider/
DApiProvider.java60 if (method.isAnnotationPresent(RpcDeprecated.class)) { in ApiProvider()
62 } else if (method.isAnnotationPresent(RpcMinSdk.class)) { in ApiProvider()

1234