Methods Summary |
---|
public IndexedItem | get(com.android.dx.rop.cst.Constant cst){@inheritDoc}
if (cst == null) {
throw new NullPointerException("cst == null");
}
throwIfNotPrepared();
IndexedItem result = methodIds.get((CstBaseMethodRef) cst);
if (result == null) {
throw new IllegalArgumentException("not found");
}
return result;
|
public int | indexOf(com.android.dx.rop.cst.CstBaseMethodRef ref)Gets the index of the given reference, which must have been added
to this instance.
if (ref == null) {
throw new NullPointerException("ref == null");
}
throwIfNotPrepared();
MethodIdItem item = methodIds.get(ref);
if (item == null) {
throw new IllegalArgumentException("not found");
}
return item.getIndex();
|
public MethodIdItem | intern(com.android.dx.rop.cst.CstBaseMethodRef method)Interns an element into this instance.
if (method == null) {
throw new NullPointerException("method == null");
}
throwIfPrepared();
MethodIdItem result = methodIds.get(method);
if (result == null) {
result = new MethodIdItem(method);
methodIds.put(method, result);
}
return result;
|
public java.util.Collection | items(){@inheritDoc}
return methodIds.values();
|
public void | writeHeaderPart(com.android.dx.util.AnnotatedOutput out)Writes the portion of the file header that refers to this instance.
throwIfNotPrepared();
int sz = methodIds.size();
int offset = (sz == 0) ? 0 : getFileOffset();
if (out.annotates()) {
out.annotate(4, "method_ids_size: " + Hex.u4(sz));
out.annotate(4, "method_ids_off: " + Hex.u4(offset));
}
out.writeInt(sz);
out.writeInt(offset);
|