Package jadx.core.dex.regions.loops

Examples of jadx.core.dex.regions.loops.ForLoop


    private void regionProcess(MethodNode mth, IRegion region) {
      if (region instanceof LoopRegion) {
        LoopRegion loopRegion = (LoopRegion) region;
        LoopType loopType = loopRegion.getType();
        if (loopType instanceof ForLoop) {
          ForLoop forLoop = (ForLoop) loopType;
          processInsn(forLoop.getInitInsn(), region);
          processInsn(forLoop.getIncrInsn(), region);
        }
      }
    }
View Full Code Here


    LoopType arrForEach = checkArrayForEach(mth, initInsn, incrInsn, condition);
    if (arrForEach != null) {
      loopRegion.setType(arrForEach);
      return true;
    }
    loopRegion.setType(new ForLoop(initInsn, incrInsn));
    return true;
  }
View Full Code Here

    }
    ConditionGen conditionGen = new ConditionGen(this);
    LoopType type = region.getType();
    if (type != null) {
      if (type instanceof ForLoop) {
        ForLoop forLoop = (ForLoop) type;
        code.startLine("for (");
        makeInsn(forLoop.getInitInsn(), code, Flags.INLINE);
        code.add("; ");
        conditionGen.add(code, condition);
        code.add("; ");
        makeInsn(forLoop.getIncrInsn(), code, Flags.INLINE);
        code.add(") {");
        makeRegionIndent(code, region.getBody());
        code.startLine('}');
        return code;
      }
View Full Code Here

TOP

Related Classes of jadx.core.dex.regions.loops.ForLoop

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.