@Override public int compare(OffsettedItem item1, OffsettedItem item2) { ItemType type1 = item1.itemType(); ItemType type2 = item2.itemType(); return type1.compareTo(type2); } };
/** {@inheritDoc} */ @Override public String toString() { StringBuffer sb = new StringBuffer(100); sb.append(getClass().getName()); sb.append('{'); sb.append(section.toString()); sb.append(' '); sb.append(type.toHuman()); sb.append('}'); return sb.toString(); }
/** {@inheritDoc} */ @Override protected void writeTo0(DexFile file, AnnotatedOutput out) { int value = type.getMapValue(); int offset; if (firstItem == null) { offset = section.getFileOffset(); } else { offset = section.getAbsoluteItemOffset(firstItem); } if (out.annotates()) { out.annotate(0, offsetString() + ' ' + type.getTypeName() + " map"); out.annotate(2, " type: " + Hex.u2(value) + " // " + type.toString()); out.annotate(2, " unused: 0"); out.annotate(4, " size: " + Hex.u4(itemCount)); out.annotate(4, " offset: " + Hex.u4(offset)); } out.writeShort(value); out.writeShort(0); // unused out.writeInt(itemCount); out.writeInt(offset); } }
/** {@inheritDoc} */ @Override protected void writeTo0(DexFile file, AnnotatedOutput out) { int value = type.getMapValue(); int offset; if (firstItem == null) { offset = section.getFileOffset(); } else { offset = section.getAbsoluteItemOffset(firstItem); } if (out.annotates()) { out.annotate(0, offsetString() + ' ' + type.getTypeName() + " map"); out.annotate(2, " type: " + Hex.u2(value) + " // " + type.toString()); out.annotate(2, " unused: 0"); out.annotate(4, " size: " + Hex.u4(itemCount)); out.annotate(4, " offset: " + Hex.u4(offset)); } out.writeShort(value); out.writeShort(0); // unused out.writeInt(itemCount); out.writeInt(offset); } }
/** {@inheritDoc} */ @Override protected void writeTo0(DexFile file, AnnotatedOutput out) { int value = type.getMapValue(); int offset; if (firstItem == null) { offset = section.getFileOffset(); } else { offset = section.getAbsoluteItemOffset(firstItem); } if (out.annotates()) { out.annotate(0, offsetString() + ' ' + type.getTypeName() + " map"); out.annotate(2, " type: " + Hex.u2(value) + " // " + type.toString()); out.annotate(2, " unused: 0"); out.annotate(4, " size: " + Hex.u4(itemCount)); out.annotate(4, " offset: " + Hex.u4(offset)); } out.writeShort(value); out.writeShort(0); // unused out.writeInt(itemCount); out.writeInt(offset); } }
public int compare(OffsettedItem item1, OffsettedItem item2) { ItemType type1 = item1.itemType(); ItemType type2 = item2.itemType(); return type1.compareTo(type2); } };
/** {@inheritDoc} */ @Override public String toString() { StringBuffer sb = new StringBuffer(100); sb.append(getClass().getName()); sb.append('{'); sb.append(section.toString()); sb.append(' '); sb.append(type.toHuman()); sb.append('}'); return sb.toString(); }
/** {@inheritDoc} */ @Override protected void writeTo0(DexFile file, AnnotatedOutput out) { int value = type.getMapValue(); int offset; if (firstItem == null) { offset = section.getFileOffset(); } else { offset = section.getAbsoluteItemOffset(firstItem); } if (out.annotates()) { out.annotate(0, offsetString() + ' ' + type.getTypeName() + " map"); out.annotate(2, " type: " + Hex.u2(value) + " // " + type.toString()); out.annotate(2, " unused: 0"); out.annotate(4, " size: " + Hex.u4(itemCount)); out.annotate(4, " offset: " + Hex.u4(offset)); } out.writeShort(value); out.writeShort(0); // unused out.writeInt(itemCount); out.writeInt(offset); } }
public int compare(OffsettedItem item1, OffsettedItem item2) { ItemType type1 = item1.itemType(); ItemType type2 = item2.itemType(); return type1.compareTo(type2); } };
/** {@inheritDoc} */ @Override public String toString() { StringBuffer sb = new StringBuffer(100); sb.append(getClass().getName()); sb.append('{'); sb.append(section.toString()); sb.append(' '); sb.append(type.toHuman()); sb.append('}'); return sb.toString(); }
/** {@inheritDoc} */ @Override protected void writeTo0(DexFile file, AnnotatedOutput out) { int value = type.getMapValue(); int offset; if (firstItem == null) { offset = section.getFileOffset(); } else { offset = section.getAbsoluteItemOffset(firstItem); } if (out.annotates()) { out.annotate(0, offsetString() + ' ' + type.getTypeName() + " map"); out.annotate(2, " type: " + Hex.u2(value) + " // " + type.toString()); out.annotate(2, " unused: 0"); out.annotate(4, " size: " + Hex.u4(itemCount)); out.annotate(4, " offset: " + Hex.u4(offset)); } out.writeShort(value); out.writeShort(0); // unused out.writeInt(itemCount); out.writeInt(offset); } }
public int compare(OffsettedItem item1, OffsettedItem item2) { ItemType type1 = item1.itemType(); ItemType type2 = item2.itemType(); return type1.compareTo(type2); } };
/** {@inheritDoc} */ @Override public String toString() { StringBuffer sb = new StringBuffer(100); sb.append(getClass().getName()); sb.append('{'); sb.append(section.toString()); sb.append(' '); sb.append(type.toHuman()); sb.append('}'); return sb.toString(); }
/** {@inheritDoc} */ @Override protected void writeTo0(DexFile file, AnnotatedOutput out) { int value = type.getMapValue(); int offset; if (firstItem == null) { offset = section.getFileOffset(); } else { offset = section.getAbsoluteItemOffset(firstItem); } if (out.annotates()) { out.annotate(0, offsetString() + ' ' + type.getTypeName() + " map"); out.annotate(2, " type: " + Hex.u2(value) + " // " + type.toString()); out.annotate(2, " unused: 0"); out.annotate(4, " size: " + Hex.u4(itemCount)); out.annotate(4, " offset: " + Hex.u4(offset)); } out.writeShort(value); out.writeShort(0); // unused out.writeInt(itemCount); out.writeInt(offset); } }
@Override public int compare(OffsettedItem item1, OffsettedItem item2) { ItemType type1 = item1.itemType(); ItemType type2 = item2.itemType(); return type1.compareTo(type2); } };
/** {@inheritDoc} */ @Override public String toString() { StringBuilder sb = new StringBuilder(100); sb.append(getClass().getName()); sb.append('{'); sb.append(section.toString()); sb.append(' '); sb.append(type.toHuman()); sb.append('}'); return sb.toString(); }
/** {@inheritDoc} */ @Override protected void writeTo0(DexFile file, AnnotatedOutput out) { int value = type.getMapValue(); int offset; if (firstItem == null) { offset = section.getFileOffset(); } else { offset = section.getAbsoluteItemOffset(firstItem); } if (out.annotates()) { out.annotate(0, offsetString() + ' ' + type.getTypeName() + " map"); out.annotate(2, " type: " + Hex.u2(value) + " // " + type.toString()); out.annotate(2, " unused: 0"); out.annotate(4, " size: " + Hex.u4(itemCount)); out.annotate(4, " offset: " + Hex.u4(offset)); } out.writeShort(value); out.writeShort(0); // unused out.writeInt(itemCount); out.writeInt(offset); } }
public int compare(OffsettedItem item1, OffsettedItem item2) { ItemType type1 = item1.itemType(); ItemType type2 = item2.itemType(); return type1.compareTo(type2); } };
/** {@inheritDoc} */ @Override public String toString() { StringBuffer sb = new StringBuffer(100); sb.append(getClass().getName()); sb.append('{'); sb.append(section.toString()); sb.append(' '); sb.append(type.toHuman()); sb.append('}'); return sb.toString(); }
/** {@inheritDoc} */ @Override protected void writeTo0(DexFile file, AnnotatedOutput out) { int value = type.getMapValue(); int offset; if (firstItem == null) { offset = section.getFileOffset(); } else { offset = section.getAbsoluteItemOffset(firstItem); } if (out.annotates()) { out.annotate(0, offsetString() + ' ' + type.getTypeName() + " map"); out.annotate(2, " type: " + Hex.u2(value) + " // " + type.toString()); out.annotate(2, " unused: 0"); out.annotate(4, " size: " + Hex.u4(itemCount)); out.annotate(4, " offset: " + Hex.u4(offset)); } out.writeShort(value); out.writeShort(0); // unused out.writeInt(itemCount); out.writeInt(offset); } }