/** * Write Annotation item into current section. * * @return real offset of item we've just written in this section. */ public int writeAnnotation(Annotation annotation) { int off = data.position(); writeByte(annotation.visibility); writeEncodedArray(annotation.encodedAnnotation); return off; }
/** * @inheritDoc */ @Override public int writeEncodedArray(EncodedValue encodedValue) { ensureFourBytesAligned(tableOfContents.encodedArrays, true); return super.writeEncodedArray(encodedValue); } }
} else if (newItem instanceof EncodedValue) { buffer.writeEncodedArray((EncodedValue) newItem); } else if (newItem instanceof ClassDef) {
/** * Write Annotation item into current section. * * @return real offset of item we've just written in this section. */ public int writeAnnotation(Annotation annotation) { int off = data.position(); writeByte(annotation.visibility); writeEncodedArray(annotation.encodedAnnotation); return off; }
/** * @inheritDoc */ @Override public int writeEncodedArray(EncodedValue encodedValue) { ensureFourBytesAligned(tableOfContents.encodedArrays, true); return super.writeEncodedArray(encodedValue); } }
} else if (newItem instanceof EncodedValue) { buffer.writeEncodedArray((EncodedValue) newItem); } else if (newItem instanceof ClassDef) {