Methods Summary |
---|
public void | addContents(DexFile file){@inheritDoc}
FieldIdsSection fieldIds = file.getFieldIds();
MixedItemSection wordData = file.getWordData();
fieldIds.intern(field);
annotations = wordData.intern(annotations);
|
public int | compareTo(com.android.dx.dex.file.FieldAnnotationStruct other){@inheritDoc}
return field.compareTo(other.field);
|
public boolean | equals(java.lang.Object other){@inheritDoc}
if (! (other instanceof FieldAnnotationStruct)) {
return false;
}
return field.equals(((FieldAnnotationStruct) other).field);
|
public com.android.dx.rop.annotation.Annotations | getAnnotations()Gets the associated annotations.
return annotations.getAnnotations();
|
public com.android.dx.rop.cst.CstFieldRef | getField()Gets the field this item is for.
return field;
|
public int | hashCode(){@inheritDoc}
return field.hashCode();
|
public java.lang.String | toHuman(){@inheritDoc}
return field.toHuman() + ": " + annotations;
|
public void | writeTo(DexFile file, com.android.dx.util.AnnotatedOutput out){@inheritDoc}
int fieldIdx = file.getFieldIds().indexOf(field);
int annotationsOff = annotations.getAbsoluteOffset();
if (out.annotates()) {
out.annotate(0, " " + field.toHuman());
out.annotate(4, " field_idx: " + Hex.u4(fieldIdx));
out.annotate(4, " annotations_off: " +
Hex.u4(annotationsOff));
}
out.writeInt(fieldIdx);
out.writeInt(annotationsOff);
|