/** * Returns an <code>AnnotationItem</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 visibility The visibility of this annotation * @param annotationValue The value of this annotation * @return an <code>AnnotationItem</code> for the given values, and that has been interned into the given * <code>DexFile</code> */ public static AnnotationItem internAnnotationItem(DexFile dexFile, AnnotationVisibility visibility, AnnotationEncodedSubValue annotationValue) { AnnotationItem annotationItem = new AnnotationItem(dexFile, visibility, annotationValue); return dexFile.AnnotationsSection.intern(annotationItem); }
return new DebugInfoItem(dexFile); case TYPE_ANNOTATION_ITEM: return new AnnotationItem(dexFile); case TYPE_ENCODED_ARRAY_ITEM: return new EncodedArrayItem(dexFile);
/** * Returns an <code>AnnotationItem</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 visibility The visibility of this annotation * @param annotationValue The value of this annotation * @return an <code>AnnotationItem</code> for the given values, and that has been interned into the given * <code>DexFile</code> */ public static AnnotationItem internAnnotationItem(DexFile dexFile, AnnotationVisibility visibility, AnnotationEncodedSubValue annotationValue) { AnnotationItem annotationItem = new AnnotationItem(dexFile, visibility, annotationValue); return dexFile.AnnotationsSection.intern(annotationItem); }
return new DebugInfoItem(dexFile); case TYPE_ANNOTATION_ITEM: return new AnnotationItem(dexFile); case TYPE_ENCODED_ARRAY_ITEM: return new EncodedArrayItem(dexFile);