Package jadx.core.dex.trycatch

Examples of jadx.core.dex.trycatch.ExceptionHandler.addBlock()


  public static class TestCls {
    private static void test(MethodNode mth, BlockNode block) {
      ExcHandlerAttr handlerAttr = block.get(AType.EXC_HANDLER);
      if (handlerAttr != null) {
        ExceptionHandler excHandler = handlerAttr.getHandler();
        excHandler.addBlock(block);
        for (BlockNode node : BlockUtils.collectBlocksDominatedBy(block, block)) {
          excHandler.addBlock(node);
        }
        for (BlockNode excBlock : excHandler.getBlocks()) {
          InstructionRemover remover = new InstructionRemover(mth, excBlock);
View Full Code Here


      ExcHandlerAttr handlerAttr = block.get(AType.EXC_HANDLER);
      if (handlerAttr != null) {
        ExceptionHandler excHandler = handlerAttr.getHandler();
        excHandler.addBlock(block);
        for (BlockNode node : BlockUtils.collectBlocksDominatedBy(block, block)) {
          excHandler.addBlock(node);
        }
        for (BlockNode excBlock : excHandler.getBlocks()) {
          InstructionRemover remover = new InstructionRemover(mth, excBlock);
          for (InsnNode insn : excBlock.getInstructions()) {
            if (insn.getType() == InsnType.MONITOR_ENTER) {
View Full Code Here

  private static void processExceptionHandlers(MethodNode mth, BlockNode block) {
    ExcHandlerAttr handlerAttr = block.get(AType.EXC_HANDLER);
    if (handlerAttr != null) {
      ExceptionHandler excHandler = handlerAttr.getHandler();
      excHandler.addBlock(block);
      for (BlockNode node : BlockUtils.collectBlocksDominatedBy(block, block)) {
        excHandler.addBlock(node);
      }
      for (BlockNode excBlock : excHandler.getBlocks()) {
        // remove 'monitor-exit' from exception handler blocks
View Full Code Here

    ExcHandlerAttr handlerAttr = block.get(AType.EXC_HANDLER);
    if (handlerAttr != null) {
      ExceptionHandler excHandler = handlerAttr.getHandler();
      excHandler.addBlock(block);
      for (BlockNode node : BlockUtils.collectBlocksDominatedBy(block, block)) {
        excHandler.addBlock(node);
      }
      for (BlockNode excBlock : excHandler.getBlocks()) {
        // remove 'monitor-exit' from exception handler blocks
        InstructionRemover remover = new InstructionRemover(mth, excBlock);
        for (InsnNode insn : excBlock.getInstructions()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.