Package soot

Examples of soot.Value.apply()


        Value rightOp = stmt.getRightOp();

        if ((rightOp instanceof ParameterRef) || (rightOp instanceof ThisRef)) {
            return;
        } else {
            rightOp.apply(this);
            stmt.getLeftOp().apply(this);

            String cast = "(" + CNames.typeNameOf(stmt.getLeftOp().getType())
                    + ")";
View Full Code Here


    //if the left op is a field ref or array ref we use the setter
    if(left_op instanceof FieldRef || left_op instanceof ArrayRef){
      m_valueSwitch.setLhs();
      left_op.apply(m_valueSwitch);
      m_valueSwitch.setRhs();
      right_op.apply(m_valueSwitch);
      m_output.append(", exception);\n");
      if(m_valueSwitch.getCheckException()){
        checkException();
      }
      m_valueSwitch.clearLhsRhs();
View Full Code Here

    else if(right_op instanceof FieldRef || right_op instanceof ArrayRef){
      m_valueSwitch.setLhs();
      left_op.apply(m_valueSwitch);
      m_output.append(" = ");
      m_valueSwitch.setRhs();
      right_op.apply(m_valueSwitch);
      m_output.append(";\n");
      if(m_valueSwitch.getCheckException()){
        checkException();
      }
      m_valueSwitch.clearLhsRhs();
View Full Code Here

  }

  public void caseThrowStmt(ThrowStmt arg0) {
    m_output.append(" *exception = ");
    Value op = arg0.getOp();
    op.apply(m_valueSwitch);
    m_output.append(";\n");
    if(m_sootMethod.isSynchronized()){
      m_output.append("org_trifort_exitMonitorMem(mem, old);\n");
    }
    m_output.append("return");
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.