Examples of Resolved


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

   
    if(Type.STRING == type) {
      resolvedValue.append("\"");
    }
   
    Resolved resolved = new Resolved(context.getCurrentInstruction(), type, resolvedValue.toString());
    context.getExpressions().push(resolved);
  }
View Full Code Here

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

    Resolved resolved = new Resolved(context.getCurrentInstruction(), type, resolvedValue.toString());
    context.getExpressions().push(resolved);
  }

  public void visitFCONST(FCONST instruction) {
    Resolved cons = new Resolved(context.getCurrentInstruction(), Type.FLOAT, instruction.getValue().toString());
    context.getExpressions().push(cons);
  }
View Full Code Here

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

  //Process all single-value conditionals.
  @Override
  public void visitIFLT(IFLT instruction) {
    Expression left = context.getExpressions().pop();
    //TODO: this should probably be resolved to it's left expression value for the resovled value.
    Expression right = new Resolved(context.getCurrentInstruction(), null, "0");
    processMultiConditionalStatement(OperationType.LESS, left, right);
  }
View Full Code Here

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

    processMultiConditionalStatement(OperationType.LESS, left, right);
  }
 
  @Override
  public void visitIFGT(IFGT instruction) {
    Expression right = new Resolved(context.getCurrentInstruction(), null, "0");
    Expression left = context.getExpressions().pop();
    processMultiConditionalStatement(OperationType.GREATER, left, right);
  }
View Full Code Here

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

    processMultiConditionalStatement(OperationType.GREATER, left, right);
  }

  @Override
  public void visitIFGE(IFGE obj) {
    Expression right = new Resolved(context.getCurrentInstruction(), null, "0");
    Expression left = context.getExpressions().pop();
    processMultiConditionalStatement(OperationType.GREATER_EQUAL, left, right);
  }
View Full Code Here

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

    Expression left = context.getExpressions().pop();
    processMultiConditionalStatement(OperationType.GREATER_EQUAL, left, right);
  }
  @Override
  public void visitIFLE(IFLE obj) {
    Expression right = new Resolved(context.getCurrentInstruction(), null, "0");
    Expression left = context.getExpressions().pop();
    processMultiConditionalStatement(OperationType.LESS_EQUAL, left, right);
  }
View Full Code Here

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

    ConstantPoolGen cpg = context.getMethodGen().getConstantPool();
    String type = instruction.getLoadClassType(cpg).getClassName();

    //get the left, create the right
    Expression left = context.getExpressions().pop();
    Expression right = new Resolved(context.getCurrentInstruction(), Type.BOOLEAN, type);
    InstanceOf instanceOf = new InstanceOf(context.getCurrentInstruction(), left, right);
   
    context.getExpressions().push(instanceOf);
  }
View Full Code Here

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

     
      parameters.add(param);
    }
   
   
    Resolved resolvedType = new Resolved(context.getCurrentInstruction(), Type.CLASS, instruction.getLoadClassType(cpg).getClassName());
    String methodName = instruction.getMethodName(cpg);
   
    //create the expression..
    MethodInvocation methodInvocation = new MethodInvocation(context.getCurrentInstruction(), resolvedType, methodName, parameters);
   
View Full Code Here

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

 
  //negate operations
  protected void processNegation(Type type) {
    //negation is the same as multiplying by negative 1; more readable.
    //push a negative 1 to the stack.
    Expression negativeOne = new Resolved(context.getCurrentInstruction(), type, "-1");
    context.getExpressions().push(negativeOne);
   
    processArithmeticTwoStackOperations(ArithmeticType.MULTIPLY);
  }
View Full Code Here

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

    Type type = instruction.getType(cpg);
   
    //now see what type it is.
    LOG.debug("To Type: "+type);
   
    Resolved resolve = new Resolved(context.getCurrentInstruction(), type, type.toString());
   
    Cast cast = new Cast(context.getCurrentInstruction(), resolve, right);
    context.getExpressions().push(cast);
  }
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.