HomeSort by relevance Sort by last modified time
    Searched full:annotationtype (Results 1 - 25 of 309) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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/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/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...]
ExposureBuilder.java 46 public void annotatedWith(Class<? extends Annotation> annotationType) {
47 Preconditions.checkNotNull(annotationType, "annotationType");
49 key = Key.get(key.getTypeLiteral(), annotationType);
AbstractBindingBuilder.java 73 protected BindingImpl<T> annotatedWithInternal(Class<? extends Annotation> annotationType) {
74 checkNotNull(annotationType, "annotationType");
77 Key.get(this.binding.getKey().getTypeLiteral(), annotationType)));
  /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);
LaunchSuite.java 122 * @param annotationType
127 final String annotationType)
240 * @param annotationType (may be null)
247 final String annotationType,
249 super(projectName, className, parameters, annotationType);
301 final String annotationType,
303 super(projectName, "Custom suite", parameters, annotationType);
378 final String annotationType,
380 super(projectName, "Custom suite", parameters, 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/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/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())) {
  /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;
  /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/
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/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/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);
  /external/javassist/src/main/javassist/bytecode/annotation/
AnnotationImpl.java 44 private transient Class annotationType;
51 JDK_ANNOTATION_TYPE_METHOD = clazz.getMethod("annotationType", (Class[])null);
96 if (annotationType == null) {
99 annotationType = classLoader.loadClass(typeName);
107 return annotationType;
123 * <code>AnnotationImpl</code>. The <code>annotationType()</code> method
140 else if ("annotationType".equals(name)
190 Method[] methods = annotationType.getDeclaredMethods();
250 Method[] methods = annotationType.getDeclaredMethods();
  /libcore/luni/src/main/java/libcore/reflect/
AnnotationFactory.java 58 public static AnnotationMember[] getElementsDescription(Class<? extends Annotation> annotationType) {
60 AnnotationMember[] desc = cache.get(annotationType);
65 if (!annotationType.isAnnotation()) {
66 throw new IllegalArgumentException("Type is not annotation: " + annotationType.getName());
68 Method[] declaredMethods = annotationType.getDeclaredMethods();
81 cache.put(annotationType, desc);
88 * @param annotationType the annotation type definition
92 public static <A extends Annotation> A createAnnotation(Class<? extends Annotation> annotationType,
94 AnnotationFactory factory = new AnnotationFactory(annotationType, elements);
95 return (A) Proxy.newProxyInstance(annotationType.getClassLoader()
    [all...]
  /libcore/ojluni/src/main/java/sun/reflect/annotation/
AnnotationType.java 41 public class AnnotationType {
73 * Returns an AnnotationType instance for the specified annotation type.
78 public static synchronized AnnotationType getInstance(
81 AnnotationType result = annotationClass.getAnnotationType();
83 result = new AnnotationType((Class<? extends Annotation>) annotationClass);
95 private AnnotationType(final Class<? extends Annotation> annotationClass) {
  /cts/tools/dex-tools/test/dex/reader/
DexTestsCommon.java 117 protected DexAnnotation getAnnotation(DexAnnotatedElement element, String annotationType) {
119 assertNotNull(annotationType);
121 if(annotationType.equals(anno.getTypeName())){
125 fail("Annotation: " + annotationType +" not present in Element.");
126 throw new IllegalArgumentException("Annotation: " + annotationType +" not present in Element.");

Completed in 1127 milliseconds

1 2 3 4 5 6 7 8 91011>>