/libcore/luni/src/main/java/java/lang/annotation/ |
IncompleteAnnotationException.java | 31 private Class<? extends Annotation> annotationType; 39 * @param annotationType 44 public IncompleteAnnotationException(Class<? extends Annotation> annotationType, 47 annotationType.getName()); 48 this.annotationType = annotationType; 57 public Class<? extends Annotation> annotationType() { 58 return annotationType;
|
Annotation.java | 35 Class<? extends Annotation> 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...] |
ClassSpecificationVisitorFactory.java | 206 String annotationType = classSpecification.annotationType; 208 if (annotationType != null) 213 new AnnotationTypeFilter(annotationType, 460 if (memberSpecification.annotationType != null) 465 new AnnotationTypeFilter(memberSpecification.annotationType,
|
/libcore/luni/src/main/java/java/lang/reflect/ |
AnnotatedElement.java | 34 * @param annotationType 38 * if {@code annotationType} is {@code null} 40 <T extends Annotation> T getAnnotation(Class<T> annotationType); 64 * @param annotationType 68 * if {@code annotationType} is {@code null} 70 boolean isAnnotationPresent(Class<? extends Annotation> annotationType);
|
Method.java | 271 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { 272 if (annotationType == null) { 273 throw new NullPointerException("annotationType == null"); 275 return getAnnotation(declaringClass, slot, annotationType); 278 Class<?> declaringClass, int slot, Class<A> annotationType); 280 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { 281 if (annotationType == null) { 282 throw new NullPointerException("annotationType == null"); 284 return isAnnotationPresent(declaringClass, slot, annotationType); 287 Class<?> declaringClass, int slot, Class<? extends Annotation> annotationType); [all...] |
Constructor.java | 206 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { 207 if (annotationType == null) { 208 throw new NullPointerException("annotationType == null"); 210 return Method.getAnnotation(declaringClass, slot, annotationType); 213 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { 214 if (annotationType == null) { 215 throw new NullPointerException("annotationType == null"); 217 return Method.isAnnotationPresent(declaringClass, slot, 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/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/ |
AnnotationEncodedSubValue.java | 45 public final TypeIdItem annotationType; 56 annotationType = dexFile.TypeIdsSection.getItemByIndex(in.readUnsignedLeb128()); 69 * @param annotationType The type of the annotation 73 public AnnotationEncodedSubValue(TypeIdItem annotationType, StringIdItem[] names, EncodedValue[] values) { 74 this.annotationType = annotationType; 84 out.annotate("annotation_type: " + annotationType.getTypeDescriptor()); 85 out.writeUnsignedLeb128(annotationType.getIndex()); 104 offset = offset + Leb128Utils.unsignedLeb128Size(annotationType.getIndex()); 119 int comp = annotationType.compareTo(other.annotationType) [all...] |
AnnotationEncodedValue.java | 51 * @param annotationType The type of the annotation 55 public AnnotationEncodedValue(TypeIdItem annotationType, StringIdItem[] names, EncodedValue[] values) { 56 super(annotationType, names, values);
|
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/ |
AnnotationFactory.java | 61 public static AnnotationMember[] getElementsDescription(Class<? extends Annotation> annotationType ) { 62 AnnotationMember[] desc = cache.get(annotationType); 64 if (!annotationType.isAnnotation()) { 66 + annotationType.getName()); 68 Method[] m = annotationType.getDeclaredMethods(); 82 cache.put(annotationType, desc); 89 * @param annotationType the annotation type definition 94 Class<? extends Annotation> annotationType, 97 AnnotationFactory antn = new AnnotationFactory(annotationType, elements); 98 return (Annotation)Proxy.newProxyInstance( annotationType.getClassLoader() [all...] |
/external/apache-harmony/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
IncompleteAnnotationExceptionTest.java | 55 assertSame("wrong annotation type", clazz, e.annotationType());
|
/external/junit/src/org/junit/runner/ |
Description.java | 181 * @return the annotation of type annotationType that is attached to this description node, 184 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { 186 if (each.annotationType().equals(annotationType)) 187 return annotationType.cast(each);
|
/libcore/luni/src/main/java/java/lang/ |
Package.java | 79 * @param annotationType 85 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { 87 if (annotationType.isInstance(annotation)) { 111 * @param annotationType 117 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { 118 return getAnnotation(annotationType) != null;
|
Class.java | 255 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { 256 if (annotationType == null) { 257 throw new NullPointerException("annotationType == null"); 260 A annotation = getDeclaredAnnotation(annotationType); 265 if (annotationType.isAnnotationPresent(Inherited.class)) { 267 annotation = sup.getDeclaredAnnotation(annotationType); 300 map.put(declaredAnnotations[i].annotationType(), declaredAnnotations[i]); 305 Class<?> clazz = declaredAnnotations[i].annotationType(); [all...] |
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
IncompleteAnnotationExceptionTest.java | 42 assertSame("wrong annotation type", clazz, e.annotationType());
|
/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.");
|
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/inject/ |
Injector.java | 77 if (annotation.annotationType().equals(InjectView.class)) {
|
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/ |
AnnotationFormatter.java | 57 ReferenceFormatter.writeTypeReference(writer, annotationItem.getEncodedAnnotation().annotationType);
|
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/EncodedValue/ |
AnnotationEncodedValueAdaptor.java | 42 ReferenceFormatter.writeTypeReference(writer, encodedAnnotation.annotationType);
|
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
AccessibleObjectTest.java | 161 ignoreOrder.add(annotations[0].annotationType()); 162 ignoreOrder.add(annotations[1].annotationType()); 176 ignoreOrder.add(annotations[0].annotationType()); 177 ignoreOrder.add(annotations[1].annotationType());
|
/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/proguard/src/proguard/gui/ |
MemberSpecificationDialog.java | 322 String annotationType = memberSpecification.annotationType; 327 annotationTypeTextField.setText(annotationType == null ? "" : ClassUtil.externalType(annotationType)); 362 String annotationType = annotationTypeTextField.getText(); 368 annotationType = 369 annotationType.equals("") || 370 annotationType.equals("***") ? null : ClassUtil.internalType(annotationType); 398 new MemberSpecification(0, 0, annotationType, name, type) [all...] |
/external/smali/dexlib/src/main/java/org/jf/dexlib/ |
AnnotationSetItem.java | 99 int annotationItemIndex = annotationItem.getEncodedAnnotation().annotationType.getIndex(); 100 int annotationItemIndex2 = annotationItem2.getEncodedAnnotation().annotationType.getIndex(); 115 annotationItem.getEncodedAnnotation().annotationType.getTypeDescriptor());
|