/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);
|
/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/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/junit-params/src/main/java/junitparams/internal/annotation/ |
FrameworkMethodAnnotations.java | 27 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { 28 return frameworkMethod.getAnnotation(annotationType); 46 customParameters = annotation.annotationType().getAnnotation(CustomParameters.class);
|
/external/junit-params/src/main/java/junitparams/converters/ |
ParamAnnotation.java | 16 if (annotation.annotationType().isAssignableFrom(Param.class)) { 19 return annotation.annotationType().getAnnotation(Param.class);
|
/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<? extends Annotation> annotationType; 51 * @param annotationType the Class object for the annotation type 56 Class<? extends Annotation> annotationType, 58 super(annotationType.getName() + " missing element " + 61 this.annotationType = annotationType; 72 public Class<? extends Annotation> annotationType() { 73 return annotationType;
|
/external/junit/src/main/java/org/junit/experimental/theories/ |
ParameterSignature.java | 102 public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType) { 104 return findDeepAnnotation(annotations2, annotationType, 3); 108 Annotation[] annotations, Class<T> annotationType, int depth) { 113 if (annotationType.isInstance(each)) { 114 return annotationType.cast(each); 116 Annotation candidate = findDeepAnnotation(each.annotationType() 117 .getAnnotations(), annotationType, depth - 1); 119 return annotationType.cast(candidate); 126 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { 128 if (annotationType.isInstance(each)) [all...] |
/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/junit/src/main/java/org/junit/runners/model/ |
Annotatable.java | 19 <T extends Annotation> T getAnnotation(Class<T> annotationType);
|
FrameworkField.java | 34 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { 35 return field.getAnnotation(annotationType);
|
/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);
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
ConstructorTest.java | 85 Class<? extends Annotation> annotationType, 90 assertIsAnnotationPresent(constructor, annotationType, 94 assertGetDeclaredAnnotation(constructor, annotationType, expectedAnnotationString); 119 Class<? extends Annotation> annotationType, 123 constructor, annotationType, expectedAnnotationStrings); 145 Class<? extends Annotation> annotationType, 149 constructor, annotationType, expectedAnnotationStrings);
|
FieldTest.java | 87 Class<?> c, String fieldName, Class<? extends Annotation> annotationType, 92 assertIsAnnotationPresent(field, annotationType, expectedAnnotationString != null); 95 assertGetDeclaredAnnotation(field, annotationType, expectedAnnotationString); 123 Class<?> c, Class<? extends Annotation> annotationType, String fieldName, 127 field, annotationType, expectedAnnotationStrings); 155 Class<?> c, Class<? extends Annotation> annotationType, 159 field, annotationType, expectedAnnotationStrings);
|
MethodTest.java | 87 Class<?> c, String methodName, Class<? extends Annotation> annotationType, 92 assertIsAnnotationPresent(method, annotationType, expectedAnnotationString != null); 95 assertGetDeclaredAnnotation(method, annotationType, expectedAnnotationString); 123 Class<?> c, Class<? extends Annotation> annotationType, String methodName, 127 method, annotationType, expectedAnnotationStrings); 155 Class<?> c, Class<? extends Annotation> annotationType, 159 method, annotationType, expectedAnnotationStrings);
|
PackageTest.java | 57 Class<?> classInPackage, Class<? extends Annotation> annotationType, 62 assertIsAnnotationPresent(aPackage, annotationType, expectedAnnotationString != null); 65 assertGetDeclaredAnnotation(aPackage, annotationType, expectedAnnotationString); 93 Class<?> classInPackage, Class<? extends Annotation> annotationType, 97 aPackage, annotationType, expectedAnnotationStrings); 123 Class<? extends Annotation> annotationType, 127 aPackage, annotationType, expectedAnnotationStrings);
|
/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();
|
/external/junit/src/main/java/org/junit/validator/ |
AnnotationsValidator.java | 63 Class<? extends Annotation> annotationType = annotation 64 .annotationType(); 65 ValidateWith validateWith = annotationType
|