Methods Summary |
---|
public void | addContents(DexFile file){@inheritDoc}
MethodIdsSection methodIds = file.getMethodIds();
MixedItemSection wordData = file.getWordData();
methodIds.intern(method);
annotations = wordData.intern(annotations);
|
public int | compareTo(com.android.dexgen.dex.file.MethodAnnotationStruct other){@inheritDoc}
return method.compareTo(other.method);
|
public boolean | equals(java.lang.Object other){@inheritDoc}
if (! (other instanceof MethodAnnotationStruct)) {
return false;
}
return method.equals(((MethodAnnotationStruct) other).method);
|
public com.android.dexgen.rop.annotation.Annotations | getAnnotations()Gets the associated annotations.
return annotations.getAnnotations();
|
public com.android.dexgen.rop.cst.CstMethodRef | getMethod()Gets the method this item is for.
return method;
|
public int | hashCode(){@inheritDoc}
return method.hashCode();
|
public java.lang.String | toHuman(){@inheritDoc}
return method.toHuman() + ": " + annotations;
|
public void | writeTo(DexFile file, com.android.dexgen.util.AnnotatedOutput out){@inheritDoc}
int methodIdx = file.getMethodIds().indexOf(method);
int annotationsOff = annotations.getAbsoluteOffset();
if (out.annotates()) {
out.annotate(0, " " + method.toHuman());
out.annotate(4, " method_idx: " + Hex.u4(methodIdx));
out.annotate(4, " annotations_off: " +
Hex.u4(annotationsOff));
}
out.writeInt(methodIdx);
out.writeInt(annotationsOff);
|