AnnotationDirectoryItem annotationDirectoryItem = new AnnotationDirectoryItem(dexFile, classAnnotations, fieldAnnotationFields, fieldAnnotationsArray, methodAnnotationMethods, methodAnnotationsArray, parameterAnnotationMethods, parameterAnnotationsArray);
return new EncodedArrayItem(dexFile); case TYPE_ANNOTATIONS_DIRECTORY_ITEM: return new AnnotationDirectoryItem(dexFile); default: assert false;
/** * Returns an <code>AnnotationDirectoryItem</code> for the given values, and that has been interned into the given * <code>DexFile</code> * @param dexFile The <code>DexFile</code> that this item belongs to * @param classAnnotations The annotations associated with the class * @param fieldAnnotations A list of <code>FieldAnnotation</code> objects containing the field annotations * @param methodAnnotations A list of <code>MethodAnnotation</code> objects containing the method annotations * @param parameterAnnotations A list of <code>ParameterAnnotation</code> objects containin the parameter * annotations * @return an <code>AnnotationItem</code> for the given values, and that has been interned into the given * <code>DexFile</code> */ public static AnnotationDirectoryItem internAnnotationDirectoryItem(DexFile dexFile, AnnotationSetItem classAnnotations, List<FieldAnnotation> fieldAnnotations, List<MethodAnnotation> methodAnnotations, List<ParameterAnnotation> parameterAnnotations) { AnnotationDirectoryItem annotationDirectoryItem = new AnnotationDirectoryItem(dexFile, classAnnotations, fieldAnnotations, methodAnnotations, parameterAnnotations); return dexFile.AnnotationDirectoriesSection.intern(annotationDirectoryItem); }
return new EncodedArrayItem(dexFile); case TYPE_ANNOTATIONS_DIRECTORY_ITEM: return new AnnotationDirectoryItem(dexFile); default: assert false;