Home
last modified time | relevance | path

Searched refs:annotationClass (Results 1 – 24 of 24) sorted by relevance

/external/guava/guava-testlib/test/com/google/common/collect/testing/features/
DFeatureEnumTest.java36 Class<? extends Annotation> annotationClass) { in assertGoodTesterAnnotation() argument
39 annotationClass), in assertGoodTesterAnnotation()
40 annotationClass.getAnnotation(TesterAnnotation.class)); in assertGoodTesterAnnotation()
42 annotationClass.getAnnotation(Retention.class); in assertGoodTesterAnnotation()
44 String.format("%s must have a @Retention annotation.", annotationClass), in assertGoodTesterAnnotation()
47 String.format("%s must have RUNTIME RetentionPolicy.", annotationClass), in assertGoodTesterAnnotation()
50 String.format("%s must be inherited.", annotationClass), in assertGoodTesterAnnotation()
51 annotationClass.getAnnotation(Inherited.class)); in assertGoodTesterAnnotation()
56 method = annotationClass.getMethod(propertyName); in assertGoodTesterAnnotation()
59 annotationClass, propertyName)); in assertGoodTesterAnnotation()
[all …]
/external/testng/src/main/java/org/testng/internal/annotations/
DJDK15TagFactory.java50 … Class<A> annotationClass, IAnnotationTransformer transformer) { in createTag() argument
54 if (annotationClass == IConfigurationAnnotation.class) { in createTag()
57 else if (annotationClass == IDataProviderAnnotation.class) { in createTag()
60 else if (annotationClass == IExpectedExceptionsAnnotation.class) { in createTag()
63 else if (annotationClass == IFactoryAnnotation.class) { in createTag()
66 else if (annotationClass == IParametersAnnotation.class) { in createTag()
69 else if (annotationClass == IObjectFactoryAnnotation.class) { in createTag()
72 else if (annotationClass == ITestAnnotation.class) { in createTag()
75 else if (annotationClass == IListenersAnnotation.class) { in createTag()
78 else if (annotationClass == IBeforeSuite.class || annotationClass == IAfterSuite.class || in createTag()
[all …]
DJDK15AnnotationFinder.java104 public <A extends IAnnotation> A findAnnotation(Method m, Class<A> annotationClass) { in findAnnotation() argument
105 final Class<? extends Annotation> a = m_annotationMap.get(annotationClass); in findAnnotation()
108 + annotationClass + "' not found."); in findAnnotation()
111 return findAnnotation(m.getDeclaringClass(), annotation, annotationClass, null, null, m, in findAnnotation()
116 public <A extends IAnnotation> A findAnnotation(ITestNGMethod tm, Class<A> annotationClass) { in findAnnotation() argument
117 final Class<? extends Annotation> a = m_annotationMap.get(annotationClass); in findAnnotation()
120 + annotationClass + "' not found."); in findAnnotation()
133 return findAnnotation(testClass, annotation, annotationClass, null, null, m, in findAnnotation()
185 public <A extends IAnnotation> A findAnnotation(Class<?> cls, Class<A> annotationClass) { in findAnnotation() argument
186 final Class<? extends Annotation> a = m_annotationMap.get(annotationClass); in findAnnotation()
[all …]
DIAnnotationFinder.java24 public <A extends IAnnotation> A findAnnotation(Class<?> cls, Class<A> annotationClass); in findAnnotation() argument
33 public <A extends IAnnotation> A findAnnotation(Method m, Class<A> annotationClass); in findAnnotation() argument
34 <A extends IAnnotation> A findAnnotation(ITestNGMethod m, Class<A> annotationClass); in findAnnotation() argument
43 public <A extends IAnnotation> A findAnnotation(Constructor<?> cons, Class<A> annotationClass); in findAnnotation() argument
DAnnotationHelper.java196 Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, in findMethodsWithAnnotation() argument
219 boolean hasClassAnnotation = isAnnotationPresent(annotationFinder, cls, annotationClass); in findMethodsWithAnnotation()
222 boolean hasMethodAnnotation = isAnnotationPresent(annotationFinder, m, annotationClass); in findMethodsWithAnnotation()
277 public static Annotation findAnnotationSuperClasses(Class<?> annotationClass, Class c) { in findAnnotationSuperClasses() argument
279 Annotation result = c.getAnnotation(annotationClass); in findAnnotationSuperClasses()
299 Class<? extends IAnnotation> annotationClass) { in isAnnotationPresent() argument
300 return annotationFinder.findAnnotation(m, annotationClass) != null; in isAnnotationPresent()
304 Class<? extends IAnnotation> annotationClass) { in isAnnotationPresent() argument
305 return annotationFinder.findAnnotation(cls, annotationClass) != null; in isAnnotationPresent()
/external/junit/src/main/java/org/junit/runners/model/
DTestClass.java125 Class<? extends Annotation> annotationClass) { in getAnnotatedMethods() argument
126 …n Collections.unmodifiableList(getAnnotatedMembers(methodsForAnnotations, annotationClass, false)); in getAnnotatedMethods()
144 Class<? extends Annotation> annotationClass) { in getAnnotatedFields() argument
145 …rn Collections.unmodifiableList(getAnnotatedMembers(fieldsForAnnotations, annotationClass, false)); in getAnnotatedFields()
226 Class<? extends Annotation> annotationClass, Class<T> valueClass) { in getAnnotatedFieldValues() argument
228 for (FrameworkField each : getAnnotatedFields(annotationClass)) { in getAnnotatedFieldValues()
243 Class<? extends Annotation> annotationClass, Class<T> valueClass) { in getAnnotatedMethodValues() argument
245 for (FrameworkMethod each : getAnnotatedMethods(annotationClass)) { in getAnnotatedMethodValues()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DInstanceField.java71 public boolean isAnnotatedBy(Class<? extends Annotation> annotationClass) { in isAnnotatedBy() argument
72 return field.isAnnotationPresent(annotationClass); in isAnnotatedBy()
91 public <A extends Annotation> A annotation(Class<A> annotationClass) { in annotation() argument
92 return field.getAnnotation(annotationClass); in annotation()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithAnnotations.java143 public default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() argument
144 return isAnnotationPresent(annotationClass.getSimpleName()); in isAnnotationPresent()
164 … public default AnnotationExpr getAnnotationByClass(Class<? extends Annotation> annotationClass) { in getAnnotationByClass() argument
165 return getAnnotationByName(annotationClass.getSimpleName()); in getAnnotationByClass()
/external/guava/guava/src/com/google/common/reflect/
DElement.java52 @Override public final boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() argument
53 return accessibleObject.isAnnotationPresent(annotationClass); in isAnnotationPresent()
56 @Override public final <A extends Annotation> A getAnnotation(Class<A> annotationClass) { in getAnnotation() argument
57 return accessibleObject.getAnnotation(annotationClass); in getAnnotation()
/external/vogar/src/vogar/target/junit/
DJunit4.java45 Class<?> annotationClass = a.annotationType(); in isJunit4Test() local
47 if (RunWith.class.isAssignableFrom(annotationClass)) { in isJunit4Test()
55 } else if (Suite.SuiteClasses.class.isAssignableFrom(annotationClass)) { in isJunit4Test()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithAnnotations.java193 default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() argument
194 return isAnnotationPresent(annotationClass.getSimpleName()); in isAnnotationPresent()
211 …efault Optional<AnnotationExpr> getAnnotationByClass(Class<? extends Annotation> annotationClass) { in getAnnotationByClass() argument
212 return getAnnotationByName(annotationClass.getSimpleName()); in getAnnotationByClass()
/external/mockito/src/test/java/org/mockito/
DAnnotationsAreCopiedFromMockedTypeTest.java58 public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in firstParamOf()
59 return getAnnotation(annotationClass) != null; in firstParamOf()
64 public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { in firstParamOf() argument
66 if (annotationClass.isAssignableFrom(firstParamAnnotation.getClass())) { in firstParamOf()
/external/guava/guava-testlib/src/com/google/common/collect/testing/features/
DFeatureUtil.java198 Class<? extends Annotation> annotationClass = a.annotationType(); in getTesterAnnotations() local
199 if (annotationClass.isAnnotationPresent(TesterAnnotation.class)) { in getTesterAnnotations()
217 Class<? extends Annotation> annotationClass = testerAnnotation.annotationType(); in buildTesterRequirements() local
221 presentFeatures = (Feature[]) annotationClass.getMethod("value") in buildTesterRequirements()
223 absentFeatures = (Feature[]) annotationClass.getMethod("absent") in buildTesterRequirements()
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliAnnotationElementName.java93 PsiClass annotationClass = facade.findClass(annotationType, getResolveScope()); in resolve() local
94 if (annotationClass == null) { in resolve()
98 for (PsiMethod method : annotationClass.findMethodsByName(getName(), true)) { in resolve()
/external/junit/src/main/java/org/junit/internal/runners/
DTestClass.java42 public List<Method> getAnnotatedMethods(Class<? extends Annotation> annotationClass) { in getAnnotatedMethods() argument
47 Annotation annotation = eachMethod.getAnnotation(annotationClass); in getAnnotatedMethods()
53 if (runsTopToBottom(annotationClass)) { in getAnnotatedMethods()
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DReflection.java31 Class<? extends Annotation> annotationClass) { in getAnnotatedMethods() argument
35 if (method.isAnnotationPresent(annotationClass)) { in getAnnotatedMethods()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DClassInfo.java25 public boolean hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation() argument
26 String internalName = "L" + annotationClass.getName().replace('.', '/') + ";"; in hasAnnotation()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_ast_nodeTypes_NodeWithAnnotations.txt29 …Line 144) isAnnotationPresent(annotationClass.getSimpleName()) ==> com.github.javaparser.ast.nodeT…
30 Line 144) annotationClass.getSimpleName() ==> java.lang.Class.getSimpleName()
39 …Line 165) getAnnotationByName(annotationClass.getSimpleName()) ==> com.github.javaparser.ast.nodeT…
40 Line 165) annotationClass.getSimpleName() ==> java.lang.Class.getSimpleName()
/external/mockito/src/main/java/org/mockito/internal/configuration/
DIndependentAnnotationEngine.java52 …private <A extends Annotation> void registerAnnotationProcessor(Class<A> annotationClass, FieldAnn…
53 annotationProcessorMap.put(annotationClass, fieldAnnotationProcessor);
/external/testng/src/main/java/org/testng/xml/dom/
DReflect.java30 for (Class<? extends Annotation> annotationClass : annotations) { in findSetterForTag()
32 = findMethodsWithAnnotation(c, annotationClass, bean); in findSetterForTag()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DParameterSet.java37 public static ParameterSet create(Class<?> theClass, Class<? extends Annotation> annotationClass) in create() argument
44 if (field.isAnnotationPresent(annotationClass)) { in create()
/external/testng/src/main/java/org/testng/internal/
DBaseTestMethod.java433 protected void initGroups(Class<? extends ITestOrConfiguration> annotationClass) { in initGroups() argument
438 …estOrConfiguration annotation = getAnnotationFinder().findAnnotation(getMethod(), annotationClass); in initGroups()
439 …nnotation = getAnnotationFinder().findAnnotation(getMethod().getDeclaringClass(), annotationClass); in initGroups()
449 …estOrConfiguration annotation = getAnnotationFinder().findAnnotation(getMethod(), annotationClass); in initGroups()
450 …nnotation = getAnnotationFinder().findAnnotation(getMethod().getDeclaringClass(), annotationClass); in initGroups()
DParameters.java349 IAnnotationFinder finder, XmlSuite xmlSuite, Class annotationClass, String atName) in createParameters() argument
369 IParameterizable a = (IParameterizable) finder.findAnnotation(m, annotationClass); in createParameters()
/external/guice/core/src/com/google/inject/internal/
DProviderMethodsModule.java186 for (Class<? extends Annotation> annotationClass : scanner.annotationClasses()) { in isProvider()
187 Annotation foundAnnotation = method.getAnnotation(annotationClass); in isProvider()