Package org.candle.decompiler.intermediate.expression

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


      Expression exp = null;
      if(values.containsKey(i)) {
        exp = values.get(i);
      }
      else {
        exp = new Resolved(ncai.getInstructionHandle(), Type.NULL, "null");
      }
      expressions.add(i, exp);
    }
   
   
View Full Code Here


    }
  }
 
  private void addExceptionHandle(IntermediateEdge ie, CodeExceptionGen ceg) {
    ObjectType ot = ceg.getCatchType();
    Resolved resolved = null;
    if(ot == null) {
      resolved = new Resolved((InstructionHandle)ie.getTarget(), Type.THROWABLE, "e");
    }
    else {
      resolved = new Resolved((InstructionHandle)ie.getTarget(), ot, ot.toString());
    }
   
    ie.getAttributes().put(EXCEPTION_STACK_KEY, resolved);
  }
View Full Code Here

  public void visitConstantPushInstruction(ConstantPushInstruction instruction) {
    //handle in subtype.
  }
  public void visitICONST(ICONST instruction) {
    LOG.debug("Loading: "+instruction.getValue().toString());
    Resolved cons = new Resolved(context.getCurrentInstruction(), Type.INT, instruction.getValue().toString());
    context.getExpressions().push(cons);
  }
View Full Code Here

    Resolved cons = new Resolved(context.getCurrentInstruction(), Type.INT, instruction.getValue().toString());
    context.getExpressions().push(cons);
  }

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

    context.getExpressions().push(cons);
  }
 

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

    context.getExpressions().push(resolved);
    LOG.debug("Pushing: "+resolved);
  }
 
  public void visitSIPUSH(SIPUSH instruction) {
    Resolved resolved = new Resolved(context.getCurrentInstruction(), Type.SHORT, instruction.getValue().toString());
    context.getExpressions().push(resolved);
    LOG.debug("Pushing: "+resolved);
  }
View Full Code Here

    }
    else {
      resolved = referencedClassName+"."+instruction.getFieldName(cpg);
    }
   
    Resolved cons = new Resolved(context.getCurrentInstruction(), instruction.getType(cpg), resolved);
    context.getExpressions().push(cons);
  }
View Full Code Here

    else {
      resolvedValue.append(instructionValue.toString());
    }
   
   
    Expression resolved = new Resolved(context.getCurrentInstruction(), type, resolvedValue.toString());
    context.getExpressions().push(resolved);
  }
View Full Code Here

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

    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

TOP

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

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.