Package jadx.core.utils.exceptions

Examples of jadx.core.utils.exceptions.JadxRuntimeException


          return false;
        }
      }
      return true;
    } else {
      throw new JadxRuntimeException("Unknown container type: " + cont.getClass());
    }
  }
View Full Code Here


        code.add(") {");
        makeRegionIndent(code, region.getBody());
        code.startLine('}');
        return code;
      }
      throw new JadxRuntimeException("Unknown loop type: " + type.getClass());
    }
    if (region.isConditionAtEnd()) {
      code.startLine("do {");
      makeRegionIndent(code, region.getBody());
      code.startLine("} while (");
View Full Code Here

      case 8:
        elType = ArgType.unknown(PrimitiveType.LONG, PrimitiveType.DOUBLE);
        break;

      default:
        throw new JadxRuntimeException("Unknown array element width: " + payload.getElementWidthUnit());
    }
    setResult(InsnArg.reg(resReg, ArgType.array(elType)));

    this.data = payload.getData();
    this.elemType = elType;
View Full Code Here

  public static ImageIcon openIcon(String name) {
    String iconPath = "/icons-16/" + name + ".png";
    URL resource = Utils.class.getResource(iconPath);
    if (resource == null) {
      throw new JadxRuntimeException("Icon not found: " + iconPath);
    }
    return new ImageIcon(resource);
  }
View Full Code Here

          return Long.toString(lit);
        }
        return "null";

      default:
        throw new JadxRuntimeException("Unknown type in literalToString: " + type);
    }
  }
View Full Code Here

    File dir = file.getParentFile();
    if (dir != null && !dir.exists()) {
      // if directory already created in other thread mkdirs will return false,
      // so check dir existence again
      if (!dir.mkdirs() && !dir.exists()) {
        throw new JadxRuntimeException("Can't create directory " + dir);
      }
    }
  }
View Full Code Here

      code.add("() ");
      new ClassGen(cls, mgen.getClassGen().getParentGen(), fallback).addClassBody(code);
      return;
    }
    if (insn.isSelf()) {
      throw new JadxRuntimeException("Constructor 'self' invoke must be removed!");
    }
    if (insn.isSuper()) {
      code.add("super");
    } else if (insn.isThis()) {
      code.add("this");
View Full Code Here

      code.add('}');
    } else if (val instanceof Annotation) {
      formatAnnotation(code, (Annotation) val);
    } else {
      // TODO: also can be method values
      throw new JadxRuntimeException("Can't decode value: " + val + " (" + val.getClass() + ")");
    }
  }
View Full Code Here

      case OR:
        addAndOr(code, stack, condition);
        break;

      default:
        throw new JadxRuntimeException("Unknown condition mode: " + condition.getMode());
    }
    stack.pop();
  }
View Full Code Here

  public void addClasspath(ClsSet set) {
    if (nameMap == null) {
      nameMap = new HashMap<String, NClass>(set.getClassesCount());
      set.addToMap(nameMap);
    } else {
      throw new JadxRuntimeException("Classpath already loaded");
    }
  }
View Full Code Here

TOP

Related Classes of jadx.core.utils.exceptions.JadxRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.