Methods Summary |
---|
public void | addContents(DexFile file){@inheritDoc}
MethodIdsSection methodIds = file.getMethodIds();
MixedItemSection wordData = file.getWordData();
methodIds.intern(method);
wordData.add(annotationsItem);
|
public int | compareTo(com.android.dx.dex.file.ParameterAnnotationStruct other){@inheritDoc}
return method.compareTo(other.method);
|
public boolean | equals(java.lang.Object other){@inheritDoc}
if (! (other instanceof ParameterAnnotationStruct)) {
return false;
}
return method.equals(((ParameterAnnotationStruct) other).method);
|
public com.android.dx.rop.annotation.AnnotationsList | getAnnotationsList()Gets the associated annotations list.
return annotationsList;
|
public com.android.dx.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}
StringBuilder sb = new StringBuilder();
sb.append(method.toHuman());
sb.append(": ");
boolean first = true;
for (AnnotationSetRefItem item : annotationsItem.getItems()) {
if (first) {
first = false;
} else {
sb.append(", ");
}
sb.append(item.toHuman());
}
return sb.toString();
|
public void | writeTo(DexFile file, com.android.dx.util.AnnotatedOutput out){@inheritDoc}
int methodIdx = file.getMethodIds().indexOf(method);
int annotationsOff = annotationsItem.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);
|