Home
last modified time | relevance | path

Searched refs:isAnnotationPresent (Results 1 – 25 of 79) 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/org/mockito/internal/configuration/
DSpyAnnotationEngine.java49 … if (field.isAnnotationPresent(Spy.class) && !field.isAnnotationPresent(InjectMocks.class)) { in process()
80 if (field.isAnnotationPresent(u)) { in assertNoIncompatibleAnnotations()
/external/guice/extensions/mini/src/com/google/inject/mini/
DMiniGuice.java135 if (method.isAnnotationPresent(com.google.inject.Provides.class)) { in install()
164 boolean singleton = method.isAnnotationPresent(javax.inject.Singleton.class); in addProviderMethodBinding()
192 if (!field.isAnnotationPresent(javax.inject.Inject.class)) { in addJitBinding()
210 if (!constructor.isAnnotationPresent(javax.inject.Inject.class)) { in addJitBinding()
258 boolean singleton = type.isAnnotationPresent(javax.inject.Singleton.class); in addJitBinding()
303 if (!a.annotationType().isAnnotationPresent(javax.inject.Qualifier.class)) { in key()
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DDeprecatedAPIChecker.java108 …compareDeprecated(isAPIDeprecated(api), cls.isAnnotationPresent(Deprecated.class), clsName, null, … in checkClass()
124 …compareDeprecated(isAPIDeprecated(api), f.isAnnotationPresent(Deprecated.class), clsName, fName, "… in checkClass()
143 … compareDeprecated(isAPIDeprecated(api), ctor.isAnnotationPresent(Deprecated.class), clsName, in checkClass()
165 …compareDeprecated(isAPIDeprecated(api), mtd.isAnnotationPresent(Deprecated.class), clsName, mtdName in checkClass()
187 …compareDeprecated(isAPIDeprecated(api), cls.isAnnotationPresent(Deprecated.class), enumName, null,… in checkEnum()
203 …compareDeprecated(isAPIDeprecated(api), ec.isAnnotationPresent(Deprecated.class), enumName, ecName, in checkEnum()
225 …compareDeprecated(isAPIDeprecated(api), mtd.isAnnotationPresent(Deprecated.class), enumName, mtdNa… in checkEnum()
/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()
DModuleProcessingStep.java36 import static com.google.auto.common.MoreElements.isAnnotationPresent;
103 if (isAnnotationPresent(methodElement, Provides.class)) { in process()
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()
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/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/sl4a/ScriptingLayer/src/com/googlecode/android_scripting/facade/
DFacadeConfiguration.java172 if (method.isAnnotationPresent(RpcDeprecated.class)) { in collectSupportedMethodDescriptors()
174 } else if (method.isAnnotationPresent(RpcMinSdk.class)) { in collectSupportedMethodDescriptors()
189 if (method.isAnnotationPresent(RpcStartEvent.class)) { in collectStartEventMethodDescriptors()
205 if (method.isAnnotationPresent(RpcStopEvent.class)) { in collectStopEventMethodDescriptors()
/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/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()
/external/mockito/src/org/mockito/internal/runners/util/
DTestMethodsFinder.java15 if (m.isAnnotationPresent(Test.class)) { in hasTestMethods()
/external/guice/extensions/persist/src/com/google/inject/persist/finder/
DDynamicFinder.java41 return method.isAnnotationPresent(Finder.class) ? new DynamicFinder(method) : null; in from()
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DReflection.java35 if (method.isAnnotationPresent(annotationClass)) { in getAnnotatedMethods()
/external/caliper/caliper/src/main/java/com/google/caliper/options/
DCommandLineParser.java209 checkArgument(!field.isAnnotationPresent(Leftovers.class), in forClass()
220 if (method.isAnnotationPresent(Leftovers.class)) { in forClass()
223 checkArgument(!method.isAnnotationPresent(Option.class), in forClass()
/external/guava/guava-tests/test/com/google/common/base/
DEnumsTest.java174 assertTrue(foo.isAnnotationPresent(ExampleAnnotation.class)); in testGetField()
178 assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class)); in testGetField()
/external/sl4a/Common/src/com/googlecode/android_scripting/rpc/
DMethodDescriptor.java69 if (method.isAnnotationPresent(Rpc.class)) { in collectFrom()
286 if (mMethod.isAnnotationPresent(RpcName.class)) { in getName()
331 if (mMethod.isAnnotationPresent(RpcStartEvent.class)) { in getHelp()
336 if (mMethod.isAnnotationPresent(RpcDeprecated.class)) { in getHelp()
/external/protobuf/java/src/test/java/com/google/protobuf/
DDeprecatedFieldTest.java78 return annotated.isAnnotationPresent(Deprecated.class); in isDeprecated()

1234