Searched refs:annotations (Results 1 - 25 of 28) sorted by relevance

12

/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DAnnotationSetRefItem.java33 private AnnotationSetItem annotations; field in class:AnnotationSetRefItem
38 * @param annotations {@code non-null;} the annotation set to refer to
40 public AnnotationSetRefItem(AnnotationSetItem annotations) { argument
43 if (annotations == null) {
44 throw new NullPointerException("annotations == null");
47 this.annotations = annotations;
60 annotations = wordData.intern(annotations);
66 return annotations
[all...]
H A DAnnotationSetItem.java25 * Set of annotations, where no annotation type appears more than once.
34 /** {@code non-null;} the set of annotations */
35 private final Annotations annotations; field in class:AnnotationSetItem
38 * {@code non-null;} set of annotations as individual items in an array.
47 * @param annotations {@code non-null;} set of annotations
49 public AnnotationSetItem(Annotations annotations) { argument
50 super(ALIGNMENT, writeSize(annotations));
52 this.annotations = annotations;
68 writeSize(Annotations annotations) argument
[all...]
H A DFieldAnnotationStruct.java26 * Association of a field and its annotations.
33 /** {@code non-null;} the associated annotations */
34 private AnnotationSetItem annotations; field in class:FieldAnnotationStruct
40 * @param annotations {@code non-null;} the associated annotations
43 AnnotationSetItem annotations) {
48 if (annotations == null) {
49 throw new NullPointerException("annotations == null");
53 this.annotations = annotations;
42 FieldAnnotationStruct(CstFieldRef field, AnnotationSetItem annotations) argument
[all...]
H A DMethodAnnotationStruct.java26 * Association of a method and its annotations.
33 /** {@code non-null;} the associated annotations */
34 private AnnotationSetItem annotations; field in class:MethodAnnotationStruct
40 * @param annotations {@code non-null;} the associated annotations
43 AnnotationSetItem annotations) {
48 if (annotations == null) {
49 throw new NullPointerException("annotations == null");
53 this.annotations = annotations;
42 MethodAnnotationStruct(CstMethodRef method, AnnotationSetItem annotations) argument
[all...]
H A DAnnotationsDirectoryItem.java31 * Per-class directory of annotations.
43 /** {@code null-ok;} the class-level annotations, if any */
89 * set of class annotations, with no other lists.
131 * Sets the direct annotations on this instance. These are annotations
135 * @param annotations {@code non-null;} annotations to set for this class
137 public void setClassAnnotations(Annotations annotations) { argument
138 if (annotations == null) {
139 throw new NullPointerException("annotations
156 addFieldAnnotations(CstFieldRef field, Annotations annotations) argument
172 addMethodAnnotations(CstMethodRef method, Annotations annotations) argument
[all...]
H A DClassDefItem.java75 /** {@code non-null;} annotations directory */
79 * Constructs an instance. Its sets of members and annotations are
322 * Sets the direct annotations on this class. These are annotations
326 * @param annotations {@code non-null;} annotations to set for this class
328 public void setClassAnnotations(Annotations annotations) { argument
329 annotationsDirectory.setClassAnnotations(annotations);
333 * Adds a field annotations item to this class.
336 * @param annotations {
338 addFieldAnnotations(CstFieldRef field, Annotations annotations) argument
349 addMethodAnnotations(CstMethodRef method, Annotations annotations) argument
[all...]
H A DParameterAnnotationStruct.java29 * Association of a method and its parameter annotations.
36 /** {@code non-null;} the associated annotations list */
39 /** {@code non-null;} the associated annotations list, as an item */
46 * @param annotationsList {@code non-null;} the associated annotations list
62 * Construct an item for the annotations list. TODO: This
71 Annotations annotations = annotationsList.get(i);
72 AnnotationSetItem item = new AnnotationSetItem(annotations);
154 * Gets the associated annotations list.
156 * @return {@code non-null;} the annotations list
/dalvik/dx/src/com/android/dx/dex/file/
H A DAnnotationSetRefItem.java33 private AnnotationSetItem annotations; field in class:AnnotationSetRefItem
38 * @param annotations {@code non-null;} the annotation set to refer to
40 public AnnotationSetRefItem(AnnotationSetItem annotations) { argument
43 if (annotations == null) {
44 throw new NullPointerException("annotations == null");
47 this.annotations = annotations;
60 annotations = wordData.intern(annotations);
66 return annotations
[all...]
H A DAnnotationSetItem.java25 * Set of annotations, where no annotation type appears more than once.
34 /** {@code non-null;} the set of annotations */
35 private final Annotations annotations; field in class:AnnotationSetItem
38 * {@code non-null;} set of annotations as individual items in an array.
47 * @param annotations {@code non-null;} set of annotations
49 public AnnotationSetItem(Annotations annotations) { argument
50 super(ALIGNMENT, writeSize(annotations));
52 this.annotations = annotations;
68 writeSize(Annotations annotations) argument
[all...]
H A DFieldAnnotationStruct.java26 * Association of a field and its annotations.
33 /** {@code non-null;} the associated annotations */
34 private AnnotationSetItem annotations; field in class:FieldAnnotationStruct
40 * @param annotations {@code non-null;} the associated annotations
43 AnnotationSetItem annotations) {
48 if (annotations == null) {
49 throw new NullPointerException("annotations == null");
53 this.annotations = annotations;
42 FieldAnnotationStruct(CstFieldRef field, AnnotationSetItem annotations) argument
[all...]
H A DMethodAnnotationStruct.java26 * Association of a method and its annotations.
33 /** {@code non-null;} the associated annotations */
34 private AnnotationSetItem annotations; field in class:MethodAnnotationStruct
40 * @param annotations {@code non-null;} the associated annotations
43 AnnotationSetItem annotations) {
48 if (annotations == null) {
49 throw new NullPointerException("annotations == null");
53 this.annotations = annotations;
42 MethodAnnotationStruct(CstMethodRef method, AnnotationSetItem annotations) argument
[all...]
H A DAnnotationsDirectoryItem.java30 * Per-class directory of annotations.
42 /** {@code null-ok;} the class-level annotations, if any */
88 * set of class annotations, with no other lists.
130 * Sets the direct annotations on this instance. These are annotations
134 * @param annotations {@code non-null;} annotations to set for this class
136 public void setClassAnnotations(Annotations annotations) { argument
137 if (annotations == null) {
138 throw new NullPointerException("annotations
155 addFieldAnnotations(CstFieldRef field, Annotations annotations) argument
171 addMethodAnnotations(CstMethodRef method, Annotations annotations) argument
[all...]
H A DClassDefItem.java72 /** {@code non-null;} annotations directory */
76 * Constructs an instance. Its sets of members and annotations are
319 * Sets the direct annotations on this class. These are annotations
323 * @param annotations {@code non-null;} annotations to set for this class
325 public void setClassAnnotations(Annotations annotations) { argument
326 annotationsDirectory.setClassAnnotations(annotations);
330 * Adds a field annotations item to this class.
333 * @param annotations {
335 addFieldAnnotations(CstFieldRef field, Annotations annotations) argument
346 addMethodAnnotations(CstMethodRef method, Annotations annotations) argument
[all...]
H A DParameterAnnotationStruct.java28 * Association of a method and its parameter annotations.
35 /** {@code non-null;} the associated annotations list */
38 /** {@code non-null;} the associated annotations list, as an item */
45 * @param annotationsList {@code non-null;} the associated annotations list
61 * Construct an item for the annotations list. TODO: This
70 Annotations annotations = annotationsList.get(i);
71 AnnotationSetItem item = new AnnotationSetItem(annotations);
153 * Gets the associated annotations list.
155 * @return {@code non-null;} the annotations list
/dalvik/dx/src/com/android/dx/cf/attrib/
H A DBaseAnnotations.java23 * Base class for annotations attributes.
26 /** {@code non-null;} list of annotations */
27 private final Annotations annotations; field in class:BaseAnnotations
37 * @param annotations {@code non-null;} the list of annotations
41 public BaseAnnotations(String attributeName, Annotations annotations, argument
46 if (annotations.isMutable()) {
47 throw new MutabilityException("annotations.isMutable()");
51 throw new NullPointerException("annotations == null");
54 this.annotations
[all...]
H A DAttRuntimeInvisibleAnnotations.java32 * @param annotations {@code non-null;} the list of annotations
36 public AttRuntimeInvisibleAnnotations(Annotations annotations, argument
38 super(ATTRIBUTE_NAME, annotations, byteLength);
H A DAttRuntimeVisibleAnnotations.java32 * @param annotations {@code non-null;} the list of annotations
36 public AttRuntimeVisibleAnnotations(Annotations annotations, argument
38 super(ATTRIBUTE_NAME, annotations, byteLength);
H A DAttRuntimeVisibleParameterAnnotations.java34 * @param annotations {@code non-null;} the parameter annotations
39 AnnotationsList annotations, int byteLength) {
40 super(ATTRIBUTE_NAME, annotations, byteLength);
38 AttRuntimeVisibleParameterAnnotations( AnnotationsList annotations, int byteLength) argument
/dalvik/dexgen/src/com/android/dexgen/rop/annotation/
H A DAnnotations.java39 /** {@code non-null;} map from types to annotations */
40 private final TreeMap<CstType, Annotation> annotations; field in class:Annotations
67 * @param annotations {@code non-null;} the instance to augment
72 public static Annotations combine(Annotations annotations, argument
76 result.addAll(annotations);
87 annotations = new TreeMap<CstType, Annotation>();
93 return annotations.hashCode();
105 return annotations.equals(otherAnnotations.annotations);
110 Iterator<Annotation> thisIter = annotations
[all...]
/dalvik/dx/src/com/android/dx/rop/annotation/
H A DAnnotations.java38 /** {@code non-null;} map from types to annotations */
39 private final TreeMap<CstType, Annotation> annotations; field in class:Annotations
66 * @param annotations {@code non-null;} the instance to augment
71 public static Annotations combine(Annotations annotations, argument
75 result.addAll(annotations);
86 annotations = new TreeMap<CstType, Annotation>();
92 return annotations.hashCode();
104 return annotations.equals(otherAnnotations.annotations);
109 Iterator<Annotation> thisIter = annotations
[all...]
/dalvik/dexgen/src/com/android/dexgen/util/
H A DByteArrayAnnotatedOutput.java47 /** whether annotations are to be verbose */
51 * {@code null-ok;} list of annotations, or {@code null} if this instance
54 private ArrayList<Annotation> annotations; field in class:ByteArrayAnnotatedOutput
61 * in annotations
70 * instance does not keep annotations by default.
80 * reallocated. The constructed instance does not keep annotations
102 this.annotations = null;
358 return (annotations != null);
368 if (annotations == null) {
373 annotations
[all...]
/dalvik/dx/src/com/android/dx/util/
H A DByteArrayAnnotatedOutput.java50 /** whether annotations are to be verbose */
54 * {@code null-ok;} list of annotations, or {@code null} if this instance
57 private ArrayList<Annotation> annotations; field in class:ByteArrayAnnotatedOutput
64 * in annotations
73 * instance does not keep annotations by default.
83 * reallocated. The constructed instance does not keep annotations
93 * keep annotations by default.
114 this.annotations = null;
354 return (annotations != null);
364 if (annotations
[all...]
/dalvik/tests/004-annotations/src/android/test/anno/
H A DTestAnnotations.java11 * Print the annotations in sorted order, so as to avoid
33 System.out.println("annotations on TYPE " + clazz +
40 System.out.println(" annotations on CTOR " + c + ":");
43 System.out.println(" constructor parameter annotations:");
51 System.out.println(" annotations on METH " + m + ":");
54 System.out.println(" method parameter annotations:");
62 System.out.println(" annotations on FIELD " + f + ":");
104 Annotation[] annotations;
108 annotations = field.getAnnotations();
109 System.out.println(field + ": " + annotations[
[all...]
/dalvik/dx/src/com/android/dx/cf/direct/
H A DAnnotationParser.java48 * Parser for annotations.
119 * @param visibility {@code non-null;} visibility of the parsed annotations
120 * @return {@code non-null;} the parsed list of lists of annotations
143 * @param visibility {@code non-null;} visibility of the parsed annotations
144 * @return {@code non-null;} the list of annotations read from the attribute
168 * @param visibility {@code non-null;} visibility of the parsed annotations
188 Annotations annotations = parseAnnotations(visibility);
189 outerList.set(i, annotations);
203 * @param visibility {@code non-null;} visibility of the parsed annotations
204 * @return {@code non-null;} the list of annotations rea
[all...]
/dalvik/dx/src/com/android/dx/dex/cf/
H A DCfTranslator.java195 Annotations annotations =
197 if (annotations.size() != 0) {
198 out.addFieldAnnotations(field, annotations);
360 Annotations annotations =
362 if (annotations.size() != 0) {
363 out.addMethodAnnotations(meth, annotations);

Completed in 363 milliseconds

12