Package jadx.core.utils.exceptions

Examples of jadx.core.utils.exceptions.JadxRuntimeException


      for (BlockNode block : domBlocks) {
        bs.andNot(block.getDoms());
      }
      domBlocks = BlockUtils.bitSetToBlocks(mth, bs);
      if (domBlocks.size() != 1) {
        throw new JadxRuntimeException(
            "Exception block dominator not found, method:" + mth + ". bs: " + bs);
      }

      BlockNode domBlock = domBlocks.get(0);
View Full Code Here


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

  }

  private void consume(char exp) {
    char c = next();
    if (exp != c) {
      throw new JadxRuntimeException("Consume wrong char: '" + c + "' != '" + exp
          + "', sign: " + debugString());
    }
  }
View Full Code Here

        if (type != null) {
          return type;
        }
        break;
    }
    throw new JadxRuntimeException("Can't parse type: " + debugString());
  }
View Full Code Here

  private final long literal;

  public LiteralArg(long value, ArgType type) {
    if (value != 0) {
      if (type.isObject()) {
        throw new JadxRuntimeException("Wrong literal type: " + type + " for value: " + value);
      } else if (!type.isTypeKnown()
          && !type.contains(PrimitiveType.LONG)
          && !type.contains(PrimitiveType.DOUBLE)) {
        ArgType m = ArgType.merge(type, ArgType.NARROW_NUMBERS);
        if (m != null) {
View Full Code Here

        for (IfCondition arg : args) {
          newArgs.add(invert(arg));
        }
        return new IfCondition(mode == Mode.AND ? Mode.OR : Mode.AND, newArgs);
    }
    throw new JadxRuntimeException("Unknown mode for invert: " + mode);
  }
View Full Code Here

    try {
      ExecutorService ex = getSaveExecutor();
      ex.shutdown();
      ex.awaitTermination(1, TimeUnit.DAYS);
    } catch (InterruptedException e) {
      throw new JadxRuntimeException("Save interrupted", e);
    }
  }
View Full Code Here

    }
  }

  public ExecutorService getSaveExecutor() {
    if (root == null) {
      throw new JadxRuntimeException("No loaded files");
    }
    int threadsCount = args.getThreadsCount();
    LOG.debug("processing threads count: {}", threadsCount);

    LOG.info("processing ...");
View Full Code Here

      case 3:
        return insn.getD();
      case 4:
        return insn.getE();
    }
    throw new JadxRuntimeException("Wrong argument number: " + arg);
  }
View Full Code Here

    for (BlockNode block : casesBlocks) {
      if (block.getStartOffset() == offset) {
        return block;
      }
    }
    throw new JadxRuntimeException("Can't find block by offset: "
        + InsnUtils.formatOffset(offset)
        + " in list " + casesBlocks);
  }
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.