OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:annotationClass
(Results
1 - 25
of
162
) sorted by null
1
2
3
4
5
6
7
/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/
HasClassAnnotation.java
32
private Class<? extends Annotation>
annotationClass
;
34
public HasClassAnnotation(Class<? extends Annotation>
annotationClass
) {
35
this.
annotationClass
=
annotationClass
;
39
return testMethod.getEnclosingClass().getAnnotation(
annotationClass
) != null;
HasMethodAnnotation.java
32
private final Class<? extends Annotation>
annotationClass
;
34
public HasMethodAnnotation(Class<? extends Annotation>
annotationClass
) {
35
this.
annotationClass
=
annotationClass
;
39
return testMethod.getAnnotation(
annotationClass
) != null;
HasAnnotation.java
35
public HasAnnotation(Class<? extends Annotation>
annotationClass
) {
37
new HasMethodAnnotation(
annotationClass
),
38
new HasClassAnnotation(
annotationClass
));
/libcore/ojluni/src/main/java/java/lang/reflect/
AnnotatedElement.java
69
* @param
annotationClass
the Class object corresponding to the
76
default boolean isAnnotationPresent(Class<? extends Annotation>
annotationClass
) {
77
return getAnnotation(
annotationClass
) != null;
84
* @param
annotationClass
the Class object corresponding to the
91
<T extends Annotation> T getAnnotation(Class<T>
annotationClass
);
119
* {@code
annotationClass
}, or {@code null} if nothing was found.
123
default <T extends Annotation> Annotation getDeclaredAnnotation(Class<T>
annotationClass
) {
124
return AnnotatedElements.getDeclaredAnnotation(this,
annotationClass
);
129
* whose class is {@code
annotationClass
}, or an empty array if nothing was found.
133
default <T extends Annotation> T[] getDeclaredAnnotationsByType(Class<T>
annotationClass
) {
[
all
...]
/libcore/luni/src/main/java/libcore/reflect/
AnnotatedElements.java
37
* @return Directly present annotation of type {@code
annotationClass
} for {@code element},
41
Class<T>
annotationClass
) {
42
if (
annotationClass
== null) {
43
throw new NullPointerException("
annotationClass
");
54
// Return the first (and only) annotation whose class matches
annotationClass
.
56
if (
annotationClass
.isInstance(annotations[i])) {
69
* @return Directly/indirectly present list of annotations of type {@code
annotationClass
} for
73
Class<T>
annotationClass
) {
74
if (
annotationClass
== null) {
75
throw new NullPointerException("
annotationClass
");
[
all
...]
/external/guava/guava-testlib/test/com/google/common/collect/testing/features/
FeatureEnumTest.java
36
Class<? extends Annotation>
annotationClass
) {
39
annotationClass
),
40
annotationClass
.getAnnotation(TesterAnnotation.class));
42
annotationClass
.getAnnotation(Retention.class);
44
String.format("%s must have a @Retention annotation.",
annotationClass
),
47
String.format("%s must have RUNTIME RetentionPolicy.",
annotationClass
),
50
String.format("%s must be inherited.",
annotationClass
),
51
annotationClass
.getAnnotation(Inherited.class));
56
method =
annotationClass
.getMethod(propertyName);
59
annotationClass
, propertyName))
[
all
...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/annotationprocessor/
AnnotationUtil.java
32
Class<? extends Annotation>
annotationClass
) {
34
for (Element element : roundEnv.getElementsAnnotatedWith(
annotationClass
)) {
35
if (element.getAnnotation(
annotationClass
) != null) {
BuildInfoUtil.java
43
Class<T>
annotationClass
) {
45
for (Element element : roundEnv.getElementsAnnotatedWith(
annotationClass
)) {
46
final T info = element.getAnnotation(
annotationClass
);
51
annotationClass
.getCanonicalName());
/external/testng/src/main/java/org/testng/internal/annotations/
IAnnotationFinder.java
21
* @param
annotationClass
24
public <A extends IAnnotation> A findAnnotation(Class<?> cls, Class<A>
annotationClass
);
28
* @param
annotationClass
33
public <A extends IAnnotation> A findAnnotation(Method m, Class<A>
annotationClass
);
34
<A extends IAnnotation> A findAnnotation(ITestNGMethod m, Class<A>
annotationClass
);
38
* @param
annotationClass
43
public <A extends IAnnotation> A findAnnotation(Constructor<?> cons, Class<A>
annotationClass
);
JDK15AnnotationFinder.java
104
public <A extends IAnnotation> A findAnnotation(Method m, Class<A>
annotationClass
) {
105
final Class<? extends Annotation> a = m_annotationMap.get(
annotationClass
);
108
+
annotationClass
+ "' not found.");
111
return findAnnotation(m.getDeclaringClass(), annotation,
annotationClass
, null, null, m,
116
public <A extends IAnnotation> A findAnnotation(ITestNGMethod tm, Class<A>
annotationClass
) {
117
final Class<? extends Annotation> a = m_annotationMap.get(
annotationClass
);
120
+
annotationClass
+ "' not found.");
133
return findAnnotation(testClass, annotation,
annotationClass
, null, null, m,
185
public <A extends IAnnotation> A findAnnotation(Class<?> cls, Class<A>
annotationClass
) {
186
final Class<? extends Annotation> a = m_annotationMap.get(
annotationClass
);
[
all
...]
JDK15TagFactory.java
50
Class<A>
annotationClass
, IAnnotationTransformer transformer) {
54
if (
annotationClass
== IConfigurationAnnotation.class) {
57
else if (
annotationClass
== IDataProviderAnnotation.class) {
60
else if (
annotationClass
== IExpectedExceptionsAnnotation.class) {
63
else if (
annotationClass
== IFactoryAnnotation.class) {
66
else if (
annotationClass
== IParametersAnnotation.class) {
69
else if (
annotationClass
== IObjectFactoryAnnotation.class) {
72
else if (
annotationClass
== ITestAnnotation.class) {
75
else if (
annotationClass
== IListenersAnnotation.class) {
78
else if (
annotationClass
== IBeforeSuite.class || annotationClass == IAfterSuite.class |
[
all
...]
AnnotationHelper.java
196
Class<? extends IAnnotation>
annotationClass
, IAnnotationFinder annotationFinder,
219
boolean hasClassAnnotation = isAnnotationPresent(annotationFinder, cls,
annotationClass
);
222
boolean hasMethodAnnotation = isAnnotationPresent(annotationFinder, m,
annotationClass
);
277
public static Annotation findAnnotationSuperClasses(Class<?>
annotationClass
, Class c) {
279
Annotation result = c.getAnnotation(
annotationClass
);
299
Class<? extends IAnnotation>
annotationClass
) {
300
return annotationFinder.findAnnotation(m,
annotationClass
) != null;
304
Class<? extends IAnnotation>
annotationClass
) {
305
return annotationFinder.findAnnotation(cls,
annotationClass
) != null;
/libcore/ojluni/src/main/java/sun/reflect/annotation/
AnnotationType.java
79
Class<? extends Annotation>
annotationClass
)
81
AnnotationType result =
annotationClass
.getAnnotationType();
83
result = new AnnotationType((Class<? extends Annotation>)
annotationClass
);
91
* @param
annotationClass
the class object for the annotation type
95
private AnnotationType(final Class<? extends Annotation>
annotationClass
) {
96
if (!
annotationClass
.isAnnotation())
103
return
annotationClass
.getDeclaredMethods();
123
annotationClass
.setAnnotationType(this);
127
if (
annotationClass
!= Retention.class &&
128
annotationClass
!= Inherited.class)
[
all
...]
/external/caliper/caliper/src/main/java/com/google/caliper/util/
Reflection.java
31
Class<? extends Annotation>
annotationClass
) {
35
if (method.isAnnotationPresent(
annotationClass
)) {
/external/mockito/src/org/mockito/internal/util/reflection/
InstanceField.java
66
* @param
annotationClass
The annotation type to check.
69
public boolean isAnnotatedBy(Class<? extends Annotation>
annotationClass
) {
70
return field.isAnnotationPresent(
annotationClass
);
76
* @param
annotationClass
Tha annotation type to retrieve.
80
public <A extends Annotation> A annotation(Class<A>
annotationClass
) {
81
return field.getAnnotation(
annotationClass
);
/art/test/048-reflect-v8/src/
AnnotationTest.java
128
// Print the annotation "
annotationClass
" that is associated with an element denoted by
130
private static <A extends Annotation> void printAnnotationsByType(Class<A>
annotationClass
,
132
A[] annotationsByType = annotationUseClass.getAnnotationsByType(
annotationClass
);
135
+ annotationUseClass.getName() + " with annotation " +
annotationClass
.getName() + ": "
152
// Print the annotation "
annotationClass
" that is directly/indirectly present with an element
155
Class<A>
annotationClass
, Class<?> annotationUseClass) {
156
A[] annotationsByType = annotationUseClass.getDeclaredAnnotationsByType(
annotationClass
);
159
+ " with annotation " +
annotationClass
.getName() + ": "
192
// Print the annotation "
annotationClass
" that is associated with an element denoted by
194
private static <A extends Annotation> void printMethodAnnotationsByType(Class<A>
annotationClass
,
[
all
...]
/external/junit/src/org/junit/runners/model/
TestClass.java
66
* its superclasses that are annotated with {@code
annotationClass
}.
69
Class<? extends Annotation>
annotationClass
) {
70
return getAnnotatedMembers(fMethodsForAnnotations,
annotationClass
);
75
* superclasses that are annotated with {@code
annotationClass
}.
78
Class<? extends Annotation>
annotationClass
) {
79
return getAnnotatedMembers(fFieldsForAnnotations,
annotationClass
);
141
Class<? extends Annotation>
annotationClass
, Class<T> valueClass) {
143
for (FrameworkField each : getAnnotatedFields(
annotationClass
)) {
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
SmaliAnnotationElementName.java
93
PsiClass
annotationClass
= facade.findClass(annotationType, getResolveScope());
94
if (
annotationClass
== null) {
98
for (PsiMethod method :
annotationClass
.findMethodsByName(getName(), true)) {
/external/guava/guava/src/com/google/common/reflect/
Element.java
52
@Override public final boolean isAnnotationPresent(Class<? extends Annotation>
annotationClass
) {
53
return accessibleObject.isAnnotationPresent(
annotationClass
);
56
@Override public final <A extends Annotation> A getAnnotation(Class<A>
annotationClass
) {
57
return accessibleObject.getAnnotation(
annotationClass
);
/external/junit/src/org/junit/internal/runners/
TestClass.java
41
public List<Method> getAnnotatedMethods(Class<? extends Annotation>
annotationClass
) {
46
Annotation annotation= eachMethod.getAnnotation(
annotationClass
);
51
if (runsTopToBottom(
annotationClass
))
/external/guava/guava-testlib/src/com/google/common/collect/testing/features/
FeatureUtil.java
198
Class<? extends Annotation>
annotationClass
= a.annotationType();
199
if (
annotationClass
.isAnnotationPresent(TesterAnnotation.class)) {
217
Class<? extends Annotation>
annotationClass
= testerAnnotation.annotationType();
221
presentFeatures = (Feature[])
annotationClass
.getMethod("value")
223
absentFeatures = (Feature[])
annotationClass
.getMethod("absent")
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
ParameterSet.java
37
public static ParameterSet create(Class<?> theClass, Class<? extends Annotation>
annotationClass
)
44
if (field.isAnnotationPresent(
annotationClass
)) {
/external/mockito/src/org/mockito/internal/configuration/
DefaultAnnotationEngine.java
57
private <A extends Annotation> void registerAnnotationProcessor(Class<A>
annotationClass
, FieldAnnotationProcessor<A> fieldAnnotationProcessor) {
58
annotationProcessorMap.put(
annotationClass
, fieldAnnotationProcessor);
/external/testng/src/main/java/org/testng/xml/dom/
Reflect.java
30
for (Class<? extends Annotation>
annotationClass
: annotations) {
32
= findMethodsWithAnnotation(c,
annotationClass
, bean);
/frameworks/base/core/java/android/os/health/
HealthKeys.java
99
final Class<Constant>
annotationClass
= Constant.class;
110
final Constant constant = field.getAnnotation(
annotationClass
);
Completed in 585 milliseconds
1
2
3
4
5
6
7