Methods Summary |
---|
public void | addContents(DexFile file){@inheritDoc}
TypeIdsSection typeIds = file.getTypeIds();
int sz = list.size();
for (int i = 0; i < sz; i++) {
typeIds.intern(list.getType(i));
}
|
protected int | compareTo0(OffsettedItem other){@inheritDoc}
TypeList thisList = this.list;
TypeList otherList = ((TypeListItem) other).list;
return StdTypeList.compareContents(thisList, otherList);
|
public com.android.dx.rop.type.TypeList | getList()Gets the underlying list.
return list;
|
public int | hashCode(){@inheritDoc}
return StdTypeList.hashContents(list);
|
public ItemType | itemType(){@inheritDoc}
return ItemType.TYPE_TYPE_LIST;
|
public java.lang.String | toHuman(){@inheritDoc}
throw new RuntimeException("unsupported");
|
protected void | writeTo0(DexFile file, com.android.dx.util.AnnotatedOutput out){@inheritDoc}
TypeIdsSection typeIds = file.getTypeIds();
int sz = list.size();
if (out.annotates()) {
out.annotate(0, offsetString() + " type_list");
out.annotate(HEADER_SIZE, " size: " + Hex.u4(sz));
for (int i = 0; i < sz; i++) {
Type one = list.getType(i);
int idx = typeIds.indexOf(one);
out.annotate(ELEMENT_SIZE,
" " + Hex.u2(idx) + " // " + one.toHuman());
}
}
out.writeInt(sz);
for (int i = 0; i < sz; i++) {
out.writeShort(typeIds.indexOf(list.getType(i)));
}
|