Home
last modified time | relevance | path

Searched refs:Annotation (Results 1 – 25 of 38) sorted by relevance

12

/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DAnnotationTest.java27 import java.text.Annotation;
29 @TestTargetClass(Annotation.class)
42 assertNotNull(new Annotation(null)); in testAnnotation()
43 assertNotNull(new Annotation("value")); in testAnnotation()
56 Annotation a = new Annotation(null); in testGetValue()
58 a = new Annotation("value"); in testGetValue()
72 Annotation ant = new Annotation("HelloWorld"); in testToString()
75 assertNotNull(new Annotation(null).toString()); in testToString()
76 assertNotNull(new Annotation("value").toString()); in testToString()
/dalvik/dx/src/com/android/dx/dex/file/
DAnnotationUtils.java19 import com.android.dx.rop.annotation.Annotation;
91 public static Annotation makeAnnotationDefault(Annotation defaults) { in makeAnnotationDefault()
92 Annotation result = new Annotation(ANNOTATION_DEFAULT_TYPE, SYSTEM); in makeAnnotationDefault()
105 public static Annotation makeEnclosingClass(CstType clazz) { in makeEnclosingClass()
106 Annotation result = new Annotation(ENCLOSING_CLASS_TYPE, SYSTEM); in makeEnclosingClass()
119 public static Annotation makeEnclosingMethod(CstMethodRef method) { in makeEnclosingMethod()
120 Annotation result = new Annotation(ENCLOSING_METHOD_TYPE, SYSTEM); in makeEnclosingMethod()
135 public static Annotation makeInnerClass(CstUtf8 name, int accessFlags) { in makeInnerClass()
136 Annotation result = new Annotation(INNER_CLASS_TYPE, SYSTEM); in makeInnerClass()
153 public static Annotation makeMemberClasses(TypeList types) { in makeMemberClasses()
[all …]
DAnnotationItem.java19 import com.android.dx.rop.annotation.Annotation;
53 private final Annotation annotation;
102 public AnnotationItem(Annotation annotation) { in AnnotationItem()
DAnnotationSetItem.java20 import com.android.dx.rop.annotation.Annotation;
56 for (Annotation a : annotations.getAnnotations()) { in AnnotationSetItem()
/dalvik/libcore/luni/src/main/java/java/lang/reflect/
DAnnotatedElement.java20 import java.lang.annotation.Annotation;
44 <T extends Annotation> T getAnnotation(Class<T> annotationType); in getAnnotation()
55 Annotation[] getAnnotations(); in getAnnotations()
66 Annotation[] getDeclaredAnnotations(); in getDeclaredAnnotations()
82 boolean isAnnotationPresent(Class<? extends Annotation> annotationType); in isAnnotationPresent()
/dalvik/dx/src/com/android/dx/rop/annotation/
DAnnotations.java40 private final TreeMap<CstType, Annotation> annotations;
73 Annotation annotation) { in combine()
87 annotations = new TreeMap<CstType, Annotation>(); in Annotations()
110 Iterator<Annotation> thisIter = annotations.values().iterator(); in compareTo()
111 Iterator<Annotation> otherIter = other.annotations.values().iterator(); in compareTo()
114 Annotation thisOne = thisIter.next(); in compareTo()
115 Annotation otherOne = otherIter.next(); in compareTo()
139 for (Annotation a : annotations.values()) { in toString()
168 public void add(Annotation annotation) { in add()
199 for (Annotation a : toAdd.annotations.values()) { in addAll()
[all …]
DAnnotation.java42 public final class Annotation extends MutabilityControl class
43 implements Comparable<Annotation>, ToHuman {
59 public Annotation(CstType type, AnnotationVisibility visibility) { in Annotation() method in Annotation
76 if (! (other instanceof Annotation)) { in equals()
80 Annotation otherAnnotation = (Annotation) other; in equals()
99 public int compareTo(Annotation other) { in compareTo()
/dalvik/tests/004-annotations/src/android/test/anno/
DTestAnnotations.java3 import java.lang.annotation.Annotation;
14 static private void printAnnotationArray(String prefix, Annotation[] arr) { in printAnnotationArray()
15 TreeMap<String, Annotation> sorted = in printAnnotationArray()
16 new TreeMap<String, Annotation>(); in printAnnotationArray()
18 for (Annotation a : arr) { in printAnnotationArray()
22 for (Annotation a : sorted.values()) { in printAnnotationArray()
29 Annotation[] annos; in printAnnotations()
30 Annotation[][] parAnnos; in printAnnotations()
44 for (Annotation[] pannos: c.getParameterAnnotations()) { in printAnnotations()
55 for (Annotation[] pannos: m.getParameterAnnotations()) { in printAnnotations()
[all …]
/dalvik/dx/src/com/android/dx/rop/cst/
DCstAnnotation.java19 import com.android.dx.rop.annotation.Annotation;
26 private final Annotation annotation;
33 public CstAnnotation(Annotation annotation) { in CstAnnotation()
93 public Annotation getAnnotation() { in getAnnotation()
/dalvik/libcore/annotation/src/main/java/java/lang/annotation/
DIncompleteAnnotationException.java33 private Class<? extends Annotation> annotationType;
49 Class<? extends Annotation> annotationType, String elementName) { in IncompleteAnnotationException()
62 public Class<? extends Annotation> annotationType() { in annotationType()
DAnnotation.java28 public interface Annotation { interface
37 Class<? extends Annotation> annotationType(); in annotationType()
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
DPackage.java37 import java.lang.annotation.Annotation;
82 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation()
83 Annotation[] list = getAnnotations(); in getAnnotation()
100 public Annotation[] getAnnotations() { in getAnnotations()
111 public Annotation[] getDeclaredAnnotations() { in getDeclaredAnnotations()
125 private static native Annotation[] getDeclaredAnnotations(Package pkg, in getDeclaredAnnotations()
139 Class<? extends Annotation> annotationType) { in isAnnotationPresent()
DClass.java43 import java.lang.annotation.Annotation;
295 public <A extends Annotation> A getAnnotation(Class<A> annotationClass) { in getAnnotation()
296 Annotation[] list = getAnnotations(); in getAnnotation()
314 public Annotation[] getAnnotations() { in getAnnotations()
326 HashMap<Class, Annotation> map = new HashMap<Class, Annotation>(); in getAnnotations()
327 Annotation[] annos = getDeclaredAnnotations(); in getAnnotations()
345 Collection<Annotation> coll = map.values(); in getAnnotations()
346 return coll.toArray(new Annotation[coll.size()]); in getAnnotations()
521 native public Annotation[] getDeclaredAnnotations(); in getDeclaredAnnotations()
1324 public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { in isAnnotationPresent()
/dalvik/libcore/text/src/main/java/java/text/
DAnnotation.java41 public class Annotation { class
52 public Annotation(Object attribute) { in Annotation() method in Annotation
/dalvik/libcore/luni-kernel/src/main/java/java/lang/reflect/
DMethod.java37 import java.lang.annotation.Annotation;
247 public Annotation[] getDeclaredAnnotations() { in getDeclaredAnnotations()
250 native private Annotation[] getDeclaredAnnotations(Class declaringClass, in getDeclaredAnnotations()
253 private static final Annotation[] NO_ANNOTATIONS = new Annotation[0];
258 /*package*/ static Annotation[][] noAnnotations(int size) { in noAnnotations()
259 Annotation[][] annotations = new Annotation[size][]; in noAnnotations()
276 public Annotation[][] getParameterAnnotations() { in getParameterAnnotations()
277 Annotation[][] parameterAnnotations in getParameterAnnotations()
285 native private Annotation[][] getParameterAnnotations(Class declaringClass, in getParameterAnnotations()
DConstructor.java37 import java.lang.annotation.Annotation;
218 public Annotation[] getDeclaredAnnotations() { in getDeclaredAnnotations()
221 native private Annotation[] getDeclaredAnnotations(Class declaringClass, in getDeclaredAnnotations()
234 public Annotation[][] getParameterAnnotations() { in getParameterAnnotations()
235 Annotation[][] parameterAnnotations in getParameterAnnotations()
242 native private Annotation[][] getParameterAnnotations(Class declaringClass, in getParameterAnnotations()
DAccessibleObject.java35 import java.lang.annotation.Annotation;
189 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent()
193 public Annotation[] getDeclaredAnnotations() { in getDeclaredAnnotations()
197 public Annotation[] getAnnotations() { in getAnnotations()
203 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation()
207 Annotation[] annos = getAnnotations(); in getAnnotation()
/dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/lang/annotation/
DAnnotationFactory.java23 import java.lang.annotation.Annotation;
57 Map<Class<? extends Annotation>, AnnotationMember[]>
58 cache = new WeakHashMap<Class<? extends Annotation>, AnnotationMember[]>();
64 …public static AnnotationMember[] getElementsDescription(Class<? extends Annotation> annotationType… in getElementsDescription()
96 public static Annotation createAnnotation( in createAnnotation()
97 Class<? extends Annotation> annotationType, in createAnnotation()
101 return (Annotation)Proxy.newProxyInstance( annotationType.getClassLoader(), in createAnnotation()
105 private final Class<? extends Annotation> klazz;
116 private AnnotationFactory(Class<? extends Annotation> klzz, AnnotationMember[] values) { in AnnotationFactory()
/dalvik/dx/src/com/android/dx/dex/cf/
DAttributeTranslator.java35 import com.android.dx.rop.annotation.Annotation;
93 Annotation signature = getSignature(attribs); in getAnnotations()
120 Annotation enclosingMethod = translateEnclosingMethod(attribs); in getClassAnnotations()
138 Annotation annotationDefault = in getClassAnnotations()
161 Annotation throwsAnnotation = in getMethodAnnotations()
209 private static Annotation getSignature(AttributeList attribs) { in getSignature()
232 private static Annotation translateEnclosingMethod(AttributeList attribs) { in translateEnclosingMethod()
386 private static Annotation translateAnnotationDefaults(DirectClassFile cf) { in translateAnnotationDefaults()
390 Annotation result = in translateAnnotationDefaults()
391 new Annotation(thisClass, AnnotationVisibility.EMBEDDED); in translateAnnotationDefaults()
/dalvik/dx/src/com/android/dx/util/
DByteArrayAnnotatedOutput.java54 private ArrayList<Annotation> annotations;
373 annotations.add(new Annotation(cursor, msg)); in annotate()
394 annotations.add(new Annotation(startAt, startAt + amt, msg)); in annotate()
441 this.annotations = new ArrayList<Annotation>(1000); in enableAnnotations()
460 Annotation last = annotations.get(asz - 1); in finishAnnotating()
491 Annotation a = annotations.get(rightAt); in writeAnnotationsTo()
554 private static class Annotation { class in ByteArrayAnnotatedOutput
575 public Annotation(int start, int end, String text) { in Annotation() method in ByteArrayAnnotatedOutput.Annotation
587 public Annotation(int start, String text) { in Annotation() method in ByteArrayAnnotatedOutput.Annotation
/dalvik/libcore/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DAnnotationTest.java27 import java.lang.annotation.Annotation;
38 @TestTargetClass(value = Annotation.class,
56 Annotation [] annotations = AnnotatedClass.class.getDeclaredAnnotations(); in test_annotationType()
58 Annotation anno = annotations[0]; in test_annotationType()
109 Annotation a1 = me1.getDeclaredAnnotations()[0]; in test_equals()
110 Annotation a2 = me2.getDeclaredAnnotations()[0]; in test_equals()
122 Annotation a1 = me1.getDeclaredAnnotations()[0]; in test_equals()
123 Annotation a2 = me2.getDeclaredAnnotations()[0]; in test_equals()
143 Annotation a1 = AnnotatedClass.class.getDeclaredAnnotations()[0]; in test_hashCode()
/dalvik/dx/src/com/android/dx/cf/direct/
DAnnotationParser.java21 import com.android.dx.rop.annotation.Annotation;
226 Annotation annotation = parseAnnotation(visibility); in parseAnnotations()
244 private Annotation parseAnnotation(AnnotationVisibility visibility) in parseAnnotation()
258 Annotation annotation = new Annotation(type, visibility); in parseAnnotation()
382 Annotation annotation = in parseValue()
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DAccessibleObjectTest.java25 import java.lang.annotation.Annotation;
199 Annotation[] annotations = ao.getAnnotations(); in test_getAnnotations()
220 Annotation[] annotations = ao.getDeclaredAnnotations(); in test_getDeclaredAnnotations()
/dalvik/dx/src/com/android/dx/command/annotool/
DAnnotationLister.java28 import com.android.dx.rop.annotation.Annotation;
150 for (Annotation anAnn: ann.getAnnotations().getAnnotations()) { in visitClassAnnotation()
184 for (Annotation anAnn: ann.getAnnotations().getAnnotations()) { in visitPackageAnnotation()
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DPackageTest.java29 import java.lang.annotation.Annotation;
31 import java.lang.annotation.Annotation;
445 Annotation [] annotations = p.getAnnotations(); in test_getAnnotations()
463 Annotation [] annotations = p.getDeclaredAnnotations(); in test_getDeclaredAnnotations()

12