/external/guava/android/guava-testlib/test/com/google/common/collect/testing/features/ |
D | FeatureEnumTest.java | 34 private static void assertGoodTesterAnnotation(Class<? extends Annotation> annotationClass) { in assertGoodTesterAnnotation() argument 36 rootLocaleFormat("%s must be annotated with @TesterAnnotation.", annotationClass), in assertGoodTesterAnnotation() 37 annotationClass.getAnnotation(TesterAnnotation.class)); in assertGoodTesterAnnotation() 38 final Retention retentionPolicy = annotationClass.getAnnotation(Retention.class); in assertGoodTesterAnnotation() 40 rootLocaleFormat("%s must have a @Retention annotation.", annotationClass), in assertGoodTesterAnnotation() 43 rootLocaleFormat("%s must have RUNTIME RetentionPolicy.", annotationClass), in assertGoodTesterAnnotation() 47 rootLocaleFormat("%s must be inherited.", annotationClass), in assertGoodTesterAnnotation() 48 annotationClass.getAnnotation(Inherited.class)); in assertGoodTesterAnnotation() 53 method = annotationClass.getMethod(propertyName); in assertGoodTesterAnnotation() 56 rootLocaleFormat("%s must have a property named '%s'.", annotationClass, propertyName)); in assertGoodTesterAnnotation() [all …]
|
/external/guava/guava-testlib/test/com/google/common/collect/testing/features/ |
D | FeatureEnumTest.java | 34 private static void assertGoodTesterAnnotation(Class<? extends Annotation> annotationClass) { in assertGoodTesterAnnotation() argument 36 rootLocaleFormat("%s must be annotated with @TesterAnnotation.", annotationClass), in assertGoodTesterAnnotation() 37 annotationClass.getAnnotation(TesterAnnotation.class)); in assertGoodTesterAnnotation() 38 final Retention retentionPolicy = annotationClass.getAnnotation(Retention.class); in assertGoodTesterAnnotation() 40 rootLocaleFormat("%s must have a @Retention annotation.", annotationClass), in assertGoodTesterAnnotation() 43 rootLocaleFormat("%s must have RUNTIME RetentionPolicy.", annotationClass), in assertGoodTesterAnnotation() 47 rootLocaleFormat("%s must be inherited.", annotationClass), in assertGoodTesterAnnotation() 48 annotationClass.getAnnotation(Inherited.class)); in assertGoodTesterAnnotation() 53 method = annotationClass.getMethod(propertyName); in assertGoodTesterAnnotation() 56 rootLocaleFormat("%s must have a property named '%s'.", annotationClass, propertyName)); in assertGoodTesterAnnotation() [all …]
|
/external/testng/src/main/java/org/testng/internal/annotations/ |
D | JDK15TagFactory.java | 50 … 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 …]
|
D | JDK15AnnotationFinder.java | 104 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 …]
|
D | IAnnotationFinder.java | 24 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
|
D | AnnotationHelper.java | 196 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/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/ |
D | AnnotationInfo.java | 26 private final AnnotationClass annotationClass; field in AnnotationInfo 29 public AnnotationInfo(AnnotationClass annotationClass, in AnnotationInfo() argument 31 this.annotationClass = annotationClass; in AnnotationInfo() 36 return annotationClass.name; in getQualifiedName() 46 "annotationClass=" + annotationClass + in toString()
|
D | AddAnnotation.java | 118 public static AddAnnotation fromJsonFile(AnnotationClass annotationClass, Path file) in fromJsonFile() argument 136 String annotationClassName = annotationClass.getName(); in fromJsonFile() 146 Class<?> propertyType = annotationClass.getPropertyType(name); in fromJsonFile() 179 AnnotationInfo annotationInfo = new AnnotationInfo(annotationClass, annotationProperties); in fromJsonFile() 220 AnnotationClass annotationClass = new AnnotationClass(annotationClassName); in markerAnnotationFromLocators() local 221 AnnotationInfo markerAnnotation = new AnnotationInfo(annotationClass, Collections.emptyMap()); in markerAnnotationFromLocators() 270 AnnotationClass annotationClass = in markerAnnotationWithPropertyFromLocators() local 273 new AnnotationInfo(annotationClass, Collections.singletonMap(propertyName, propertyValue)); in markerAnnotationWithPropertyFromLocators()
|
/external/junit/src/main/java/org/junit/runners/model/ |
D | TestClass.java | 126 Class<? extends Annotation> annotationClass) { in getAnnotatedMethods() argument 127 …n Collections.unmodifiableList(getAnnotatedMembers(methodsForAnnotations, annotationClass, false)); in getAnnotatedMethods() 145 Class<? extends Annotation> annotationClass) { in getAnnotatedFields() argument 146 …rn Collections.unmodifiableList(getAnnotatedMembers(fieldsForAnnotations, annotationClass, false)); in getAnnotatedFields() 227 Class<? extends Annotation> annotationClass, Class<T> valueClass) { in getAnnotatedFieldValues() argument 229 collectAnnotatedFieldValues(test, annotationClass, valueClass, in getAnnotatedFieldValues() 245 Class<? extends Annotation> annotationClass, Class<T> valueClass, in collectAnnotatedFieldValues() argument 247 for (FrameworkField each : getAnnotatedFields(annotationClass)) { in collectAnnotatedFieldValues() 261 Class<? extends Annotation> annotationClass, Class<T> valueClass) { in getAnnotatedMethodValues() argument 263 collectAnnotatedMethodValues(test, annotationClass, valueClass, in getAnnotatedMethodValues() [all …]
|
/external/javassist/src/test/scoped/ |
D | ScopedRepositoryTestCase.java | 174 Class<?> annotationClass = cl.loadClass("scoped.jar1.ScopedTestAnnotation"); in checkScopedAnnotation() local 175 checkScopedAnnotation(annotationClass, ctClass.getAnnotations(), value); in checkScopedAnnotation() 176 checkScopedAnnotation(annotationClass, getFieldAnnotations(ctClass), value); in checkScopedAnnotation() 177 checkScopedAnnotation(annotationClass, getConstructorAnnotations(ctClass), value); in checkScopedAnnotation() 178 checkScopedAnnotation(annotationClass, getConstructorParameterAnnotations(ctClass), value); in checkScopedAnnotation() 179 checkScopedAnnotation(annotationClass, getMethodAnnotations(ctClass), value); in checkScopedAnnotation() 180 checkScopedAnnotation(annotationClass, getMethodParameterAnnotations(ctClass), value); in checkScopedAnnotation() 183 …protected void checkScopedAnnotation(Class<?> annotationClass, Object[] annotations, String value)… in checkScopedAnnotation() argument 188 assertTrue(annotationClass.isInstance(annotations[0])); in checkScopedAnnotation() 190 Method method = annotationClass.getMethod("something", new Class<?>[0]); in checkScopedAnnotation()
|
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
D | InstanceField.java | 71 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/ |
D | NodeWithAnnotations.java | 143 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/ |
D | Element.java | 50 public final boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() argument 51 return accessibleObject.isAnnotationPresent(annotationClass); in isAnnotationPresent() 55 public final <A extends Annotation> A getAnnotation(Class<A> annotationClass) { in getAnnotation() argument 56 return accessibleObject.getAnnotation(annotationClass); in getAnnotation()
|
/external/guava/android/guava/src/com/google/common/reflect/ |
D | Element.java | 50 public final boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() argument 51 return accessibleObject.isAnnotationPresent(annotationClass); in isAnnotationPresent() 55 public final <A extends Annotation> A getAnnotation(Class<A> annotationClass) { in getAnnotation() argument 56 return accessibleObject.getAnnotation(annotationClass); in getAnnotation()
|
/external/vogar/src/vogar/target/junit/ |
D | Junit4.java | 45 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/ |
D | NodeWithAnnotations.java | 204 default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent() argument 205 return isAnnotationPresent(annotationClass.getSimpleName()); in isAnnotationPresent() 222 …efault Optional<AnnotationExpr> getAnnotationByClass(Class<? extends Annotation> annotationClass) { in getAnnotationByClass() argument 223 return getAnnotationByName(annotationClass.getSimpleName()); in getAnnotationByClass()
|
/external/mockito/src/test/java/org/mockito/ |
D | AnnotationsAreCopiedFromMockedTypeTest.java | 58 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.annotationType())) { in firstParamOf()
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/ |
D | SmaliAnnotationElementName.java | 93 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/ |
D | TestClass.java | 42 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/ |
D | Reflection.java | 31 Class<? extends Annotation> annotationClass) { in getAnnotatedMethods() argument 35 if (method.isAnnotationPresent(annotationClass)) { in getAnnotatedMethods()
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/aosp/ |
D | Annotations.java | 68 AnnotationClass annotationClass = new AnnotationClass( in addUnsupportedAppUsage() local 76 return AddAnnotation.fromJsonFile(annotationClass, unsupportedAppUsagePath); in addUnsupportedAppUsage()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/ |
D | com_github_javaparser_ast_nodeTypes_NodeWithAnnotations.txt | 29 …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/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/ |
D | MutableClass.java | 50 public boolean hasAnnotation(Class<? extends Annotation> annotationClass) { in hasAnnotation() argument 51 String internalName = "L" + annotationClass.getName().replace('.', '/') + ";"; in hasAnnotation()
|
/external/testng/src/main/java/org/testng/xml/dom/ |
D | Reflect.java | 30 for (Class<? extends Annotation> annotationClass : annotations) { in findSetterForTag() 32 = findMethodsWithAnnotation(c, annotationClass, bean); in findSetterForTag()
|
/external/mockito/src/main/java/org/mockito/internal/configuration/ |
D | IndependentAnnotationEngine.java | 52 …private <A extends Annotation> void registerAnnotationProcessor(Class<A> annotationClass, FieldAnn… 53 annotationProcessorMap.put(annotationClass, fieldAnnotationProcessor);
|