/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
H A D | AnnotationSetRefItem.java | 33 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 D | AnnotationSetItem.java | 25 * 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 D | FieldAnnotationStruct.java | 26 * 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 D | MethodAnnotationStruct.java | 26 * 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 D | AnnotationsDirectoryItem.java | 31 * 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 D | ClassDefItem.java | 75 /** {@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 D | ParameterAnnotationStruct.java | 29 * 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 D | AnnotationSetRefItem.java | 33 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 D | AnnotationSetItem.java | 25 * 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 D | FieldAnnotationStruct.java | 26 * 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 D | MethodAnnotationStruct.java | 26 * 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 D | AnnotationsDirectoryItem.java | 31 * 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 D | ClassDefItem.java | 73 /** {@code non-null;} annotations directory */ 77 * Constructs an instance. Its sets of members and annotations are 320 * Sets the direct annotations on this class. These are annotations 324 * @param annotations {@code non-null;} annotations to set for this class 326 public void setClassAnnotations(Annotations annotations) { argument 327 annotationsDirectory.setClassAnnotations(annotations); 331 * Adds a field annotations item to this class. 334 * @param annotations { 336 addFieldAnnotations(CstFieldRef field, Annotations annotations) argument 347 addMethodAnnotations(CstMethodRef method, Annotations annotations) argument [all...] |
H A D | ParameterAnnotationStruct.java | 29 * 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/cf/attrib/ |
H A D | BaseAnnotations.java | 23 * 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 D | AttRuntimeInvisibleAnnotations.java | 32 * @param annotations {@code non-null;} the list of annotations 36 public AttRuntimeInvisibleAnnotations(Annotations annotations, argument 38 super(ATTRIBUTE_NAME, annotations, byteLength);
|
H A D | AttRuntimeVisibleAnnotations.java | 32 * @param annotations {@code non-null;} the list of annotations 36 public AttRuntimeVisibleAnnotations(Annotations annotations, argument 38 super(ATTRIBUTE_NAME, annotations, byteLength);
|
H A D | AttRuntimeVisibleParameterAnnotations.java | 34 * @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 D | Annotations.java | 39 /** {@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 D | Annotations.java | 39 /** {@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/dexgen/src/com/android/dexgen/util/ |
H A D | ByteArrayAnnotatedOutput.java | 47 /** 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 D | ByteArrayAnnotatedOutput.java | 47 /** 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 90 * keep annotations by default. 111 this.annotations = null; 351 return (annotations != null); 361 if (annotations [all...] |
/dalvik/tests/004-annotations/src/android/test/anno/ |
H A D | TestAnnotations.java | 11 * 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 D | AnnotationParser.java | 49 * Parser for annotations. 120 * @param visibility {@code non-null;} visibility of the parsed annotations 121 * @return {@code non-null;} the parsed list of lists of annotations 144 * @param visibility {@code non-null;} visibility of the parsed annotations 145 * @return {@code non-null;} the list of annotations read from the attribute 169 * @param visibility {@code non-null;} visibility of the parsed annotations 189 Annotations annotations = parseAnnotations(visibility); 190 outerList.set(i, annotations); 204 * @param visibility {@code non-null;} visibility of the parsed annotations 205 * @return {@code non-null;} the list of annotations rea [all...] |
/dalvik/dx/src/com/android/dx/dex/cf/ |
H A D | CfTranslator.java | 168 Annotations annotations = 170 if (annotations.size() != 0) { 171 out.addFieldAnnotations(field, annotations); 330 Annotations annotations = 332 if (annotations.size() != 0) { 333 out.addMethodAnnotations(meth, annotations);
|