Package org.candle.decompiler.intermediate.expression

Examples of org.candle.decompiler.intermediate.expression.Increment


       
        if(declaration.getExpression() instanceof Declaration) {
          Declaration declarationExpression = (Declaration)declaration.getExpression();
         
          if(iteration.getExpression() instanceof Increment) {
            Increment incrementExpression = (Increment)iteration.getExpression();
           
            if(incrementExpression.getVariable().getType().equals(declarationExpression.getVariable().getType())) {
             
              //now check names.
              if(incrementExpression.getVariable().getName().equals(declarationExpression.getVariable().getName())) {
                //we can actually convert this to a for loop.
                ForIntermediate forIntermediate = new ForIntermediate(line, declarationExpression, incrementExpression);
                //forIntermediate.setTrueBranch(line.getTrueBranch());
                //forIntermediate.setFalseBranch(line.getFalseBranch());
               
View Full Code Here


    }
    else {
      incrementerBuilder.append(" += ").append(incrementBy);
    }
   
    Expression exp = new Increment(context.getCurrentInstruction(), variable, Type.INT, incrementerBuilder.toString());
    context.pushIntermediateToInstruction(new StatementIntermediate(context.getCurrentInstruction(), exp));
  }
View Full Code Here

TOP

Related Classes of org.candle.decompiler.intermediate.expression.Increment

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.