Methods Summary |
---|
public void | addContents(DexFile file){@inheritDoc}
ValueEncoder.addContents(file, array);
|
protected int | compareTo0(OffsettedItem other){@inheritDoc}
EncodedArrayItem otherArray = (EncodedArrayItem) other;
return array.compareTo(otherArray.array);
|
public int | hashCode(){@inheritDoc}
return array.hashCode();
|
public ItemType | itemType(){@inheritDoc}
return ItemType.TYPE_ENCODED_ARRAY_ITEM;
|
protected void | place0(Section addedTo, int offset){@inheritDoc}
// Encode the data and note the size.
ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput();
ValueEncoder encoder = new ValueEncoder(addedTo.getFile(), out);
encoder.writeArray(array, false);
encodedForm = out.toByteArray();
setWriteSize(encodedForm.length);
|
public java.lang.String | toHuman(){@inheritDoc}
return array.toHuman();
|
protected void | writeTo0(DexFile file, com.android.dexgen.util.AnnotatedOutput out){@inheritDoc}
boolean annotates = out.annotates();
if (annotates) {
out.annotate(0, offsetString() + " encoded array");
/*
* The output is to be annotated, so redo the work previously
* done by place0(), except this time annotations will actually
* get emitted.
*/
ValueEncoder encoder = new ValueEncoder(file, out);
encoder.writeArray(array, true);
} else {
out.write(encodedForm);
}
|