HomeSort by relevance Sort by last modified time
    Searched refs:annotationType (Results 1 - 25 of 388) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/ojluni/src/main/java/java/lang/annotation/
IncompleteAnnotationException.java 44 private Class annotationType;
52 * @param annotationType the Class object for the annotation type
56 Class<? extends Annotation> annotationType,
58 super(annotationType.getName() + " missing element " + elementName);
60 this.annotationType = annotationType;
71 public Class<? extends Annotation> annotationType() {
72 return annotationType;
Annotation.java 130 Class<? extends Annotation> annotationType();
  /external/guice/core/src/com/google/inject/internal/
ScopeBindingProcessor.java 40 Class<? extends Annotation> annotationType = checkNotNull(command.getAnnotationType(), "annotation type");
42 if (!Annotations.isScopeAnnotation(annotationType)) {
43 errors.missingScopeAnnotation(annotationType);
47 if (!Annotations.isRetainedAtRuntime(annotationType)) {
48 errors.missingRuntimeRetention(annotationType);
52 ScopeBinding existing = injector.state.getScopeBinding(annotationType);
55 errors.duplicateScopes(existing, annotationType, scope);
58 injector.state.putScopeBinding(annotationType, command);
Annotations.java 59 public static boolean isMarker(Class<? extends Annotation> annotationType) {
60 return annotationType.getDeclaredMethods().length == 0;
63 public static boolean isAllDefaultMethods(Class<? extends Annotation> annotationType) {
65 for (Method m : annotationType.getDeclaredMethods()) {
87 public static <T extends Annotation> T generateAnnotation(Class<T> annotationType) {
89 isAllDefaultMethods(annotationType), "%s is not all default methods", annotationType);
90 return (T)cache.getUnchecked(annotationType);
93 private static <T extends Annotation> T generateAnnotationImpl(final Class<T> annotationType) {
94 final Map<String, Object> members = resolveMembers(annotationType);
    [all...]
Nullability.java 41 Class<? extends Annotation> type = a.annotationType();
ExposureBuilder.java 46 public void annotatedWith(Class<? extends Annotation> annotationType) {
47 Preconditions.checkNotNull(annotationType, "annotationType");
49 key = Key.get(key.getTypeLiteral(), annotationType);
  /external/proguard/src/proguard/
MemberSpecification.java 34 public final String annotationType;
59 * @param annotationType the name of the class that must be an
73 String annotationType,
79 this.annotationType = annotationType;
100 (this.annotationType == null ? other.annotationType == null : this.annotationType.equals(other.annotationType)) &&
110 (annotationType == null ? 0 : annotationType.hashCode())
    [all...]
ClassSpecification.java 38 public final String annotationType;
71 classSpecification.annotationType,
90 * @param annotationType the name of the class that must be an
110 String annotationType,
118 annotationType,
137 * @param annotationType the name of the class that must be an
159 String annotationType,
169 this.annotationType = annotationType;
226 (this.annotationType == null ? other.annotationType == null : this.annotationType.equals(other.annotat (…)
    [all...]
  /external/guice/core/src/com/google/inject/spi/
ScopeBinding.java 39 private final Class<? extends Annotation> annotationType;
42 ScopeBinding(Object source, Class<? extends Annotation> annotationType, Scope scope) {
44 this.annotationType = checkNotNull(annotationType, "annotationType");
53 return annotationType;
65 binder.withSource(getSource()).bindScope(annotationType, scope);
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/reflect/
Annotation.java 14 public <T extends java.lang.annotation.Annotation> T getAnnotation (Class<T> annotationType) {
15 if (annotation.annotationType().equals(annotationType)) {
22 return annotation.annotationType();
Field.java 107 public boolean isAnnotationPresent (Class<? extends java.lang.annotation.Annotation> annotationType) {
110 if (annotation.annotationType().equals(annotationType)) {
131 public Annotation getDeclaredAnnotation (Class<? extends java.lang.annotation.Annotation> annotationType) {
134 if (annotation.annotationType().equals(annotationType)) {
Method.java 122 public boolean isAnnotationPresent (Class<? extends java.lang.annotation.Annotation> annotationType) {
126 if (annotation.annotationType().equals(annotationType)) {
151 public Annotation getDeclaredAnnotation (Class<? extends java.lang.annotation.Annotation> annotationType) {
156 if (annotation.annotationType().equals(annotationType)) {
  /external/libgdx/gdx/src/com/badlogic/gdx/utils/reflect/
Annotation.java 14 public <T extends java.lang.annotation.Annotation> T getAnnotation (Class<T> annotationType) {
15 if (annotation.annotationType().equals(annotationType)) {
22 return annotation.annotationType();
  /external/guava/guava/src/com/google/common/reflect/
Parameter.java 65 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) {
66 return getAnnotation(annotationType) != null;
71 public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
72 checkNotNull(annotationType);
74 if (annotationType.isInstance(annotation)) {
75 return annotationType.cast(annotation);
89 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) {
90 return getDeclaredAnnotationsByType(annotationType);
106 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationType) {
107 checkNotNull(annotationType);
    [all...]
  /external/guice/core/src/com/google/inject/
Key.java 76 protected Key(Class<? extends Annotation> annotationType) {
77 this.annotationStrategy = strategyFor(annotationType);
250 Class<? extends Annotation> annotationType) {
251 return new Key<T>(type, strategyFor(annotationType));
272 Class<? extends Annotation> annotationType) {
273 return new Key<Object>(type, strategyFor(annotationType));
294 Class<? extends Annotation> annotationType) {
295 return new Key<T>(typeLiteral, strategyFor(annotationType));
367 Class<? extends Annotation> annotationType = annotation.annotationType();
    [all...]
  /external/guice/core/src/com/google/inject/binder/
AnnotatedConstantBindingBuilder.java 32 Class<? extends Annotation> annotationType);
AnnotatedElementBuilder.java 32 void annotatedWith(Class<? extends Annotation> annotationType);
AnnotatedBindingBuilder.java 32 Class<? extends Annotation> annotationType);
  /external/junit/src/org/junit/experimental/theories/
ParameterSignature.java 63 public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType) {
65 return findDeepAnnotation(annotations2, annotationType, 3);
69 Annotation[] annotations, Class<T> annotationType, int depth) {
73 if (annotationType.isInstance(each))
74 return annotationType.cast(each);
75 Annotation candidate= findDeepAnnotation(each.annotationType()
76 .getAnnotations(), annotationType, depth - 1);
78 return annotationType.cast(candidate);
84 public <T extends Annotation> T getAnnotation(Class<T> annotationType) {
86 if (annotationType.isInstance(each)
    [all...]
  /external/testng/src/main/java/org/testng/xml/
SuiteGenerator.java 24 Map<String, String> parameters, String annotationType, int logLevel) {
34 parameters, annotationType, logLevel);
40 parameters, annotationType, logLevel);
46 annotationType, logLevel);
60 Map<String, String> parameters, String annotationType, int logLevel) {
63 parameters, annotationType, logLevel);
67 parameters, annotationType, logLevel);
70 parameters, annotationType, logLevel);
  /external/testng/src/main/java/org/testng/junit/
JUnit4TestRecognizer.java 18 if (RunWith.class.isAssignableFrom(an.annotationType())) {
25 if (org.junit.Test.class.isAssignableFrom(a.annotationType())) {
  /external/guice/extensions/grapher/src/com/google/inject/grapher/
ShortNameFactory.java 53 Class<? extends Annotation> annotationType = key.getAnnotationType();
55 annotationType = annotation.annotationType();
58 String canonicalName = annotationType.getName();
59 String simpleName = annotationType.getSimpleName();
62 } else if (annotationType != null) {
63 return "@" + annotationType.getSimpleName();
  /external/guice/core/src/com/google/inject/matcher/
Matchers.java 97 Class<? extends Annotation> annotationType) {
98 Retention retention = annotationType.getAnnotation(Retention.class);
100 "Annotation %s is missing RUNTIME retention", annotationType.getSimpleName());
108 final Class<? extends Annotation> annotationType) {
109 return new AnnotatedWithType(annotationType);
114 private final Class<? extends Annotation> annotationType;
116 public AnnotatedWithType(Class<? extends Annotation> annotationType) {
117 this.annotationType = checkNotNull(annotationType, "annotation type");
118 checkForRuntimeRetention(annotationType);
    [all...]
  /external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
FactoryModuleBuilder.java 273 Class<? extends Annotation> annotationType, Class<? extends T> target) {
274 return implement(source, annotationType, TypeLiteral.get(target));
281 Class<? extends Annotation> annotationType, TypeLiteral<? extends T> target) {
282 return implement(TypeLiteral.get(source), annotationType, target);
289 Class<? extends Annotation> annotationType, Class<? extends T> target) {
290 return implement(source, annotationType, TypeLiteral.get(target));
297 Class<? extends Annotation> annotationType, TypeLiteral<? extends T> target) {
298 return implement(Key.get(source, annotationType), target);
  /external/guice/extensions/multibindings/src/com/google/inject/multibindings/
MultibindingsScanner.java 135 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class);
144 Method valueMethod = annotation.annotationType().getDeclaredMethod("value");
147 annotation.annotationType());
152 annotation.annotationType());
164 if (!mapKeyAnnotation.annotationType().getAnnotation(MapKey.class).unwrapValue()) {
165 return new TypeAndValue(TypeLiteral.get(mapKeyAnnotation.annotationType()), mapKeyAnnotation);
168 Method valueMethod = mapKeyAnnotation.annotationType().getDeclaredMethod("value");
171 TypeLiteral.get(mapKeyAnnotation.annotationType()).getReturnType(valueMethod);

Completed in 1433 milliseconds

1 2 3 4 5 6 7 8 91011>>