Exemplo n.º 1
0
  public static String[] getMethods(@Nonnull RawDexFile dexFile) {
    MapItem mapItem = dexFile.getMapItemForSection(ItemType.METHOD_ID_ITEM);
    if (mapItem == null) {
      return new String[0];
    }

    int methodCount = mapItem.getItemCount();
    String[] ret = new String[methodCount];
    for (int i = 0; i < methodCount; i++) {
      ret[i] = asString(dexFile, i);
    }
    return ret;
  }
Exemplo n.º 2
0
 public synchronized boolean equals(java.lang.Object obj) {
   if (!(obj instanceof MapItem)) return false;
   MapItem other = (MapItem) obj;
   if (obj == null) return false;
   if (this == obj) return true;
   if (__equalsCalc != null) {
     return (__equalsCalc == obj);
   }
   __equalsCalc = obj;
   boolean _equals;
   _equals =
       true
           && ((this.item == null && other.getItem() == null)
               || (this.item != null && this.item.equals(other.getItem())))
           && ((this.key == null && other.getKey() == null)
               || (this.key != null && this.key.equals(other.getKey())));
   __equalsCalc = null;
   return _equals;
 }