Package dk.brics.string.intermediate

Examples of dk.brics.string.intermediate.Return


      }
    }

    // visit interprocedural successors
    if (s instanceof Return) {
      Return returnStm = (Return)s;
      Method method = s.getMethod();
      for (Call call : method.getCallSites()) {
        for (Statement afterCall : call.getSuccs()) {
          after = getInfoBefore(afterCall);
          changed = false;
View Full Code Here


  public void caseInvokeStmt(InvokeStmt stmt) {
    translateExpression(stmt.getInvokeExprBox());
  }
  public void caseReturnStmt(ReturnStmt stmt) {
    Variable returnValue = translateExpression(stmt.getOpBox());
    addStatement(new Return(returnValue));
  }
View Full Code Here

  public void caseReturnStmt(ReturnStmt stmt) {
    Variable returnValue = translateExpression(stmt.getOpBox());
    addStatement(new Return(returnValue));
  }
  public void caseReturnVoidStmt(ReturnVoidStmt stmt) {
    addStatement(new Return(getNothing()));
  }
View Full Code Here

            methods.add(m);
            tostring_methods.put(ac.getName(), m);
            Variable var = application.createVariable(VariableType.STRING);
            StringStatement spot = new StringAssignment(var, var);
            m.addStatement(spot);
            Return ret = new Return(var);
            m.addStatement(ret);
            spot.addSucc(ret);
            tostring_hotspots.put(ac, spot); // these hotspots are used by
                                             // StringAnalysis.getTypeAutomaton
            Collection<SootClass> subtypes;
View Full Code Here

        SootClass c = Scene.v().getSootClass(classname);
        Variable var = application.createVariable(VariableType.STRING);
        StringStatement ss = new StringInit(var, a);
        m.addStatement(ss);
        m.getEntry().addSucc(ss);
        Return ret = new Return(var);
        m.addStatement(ret);
        ss.addSucc(ret);

        methods.add(m);
        tostring_targets.put(c, m);
View Full Code Here

        cfg.useBranch();
       
        cfg.endBranch();
       
        // add a return statement
        Return ret = new Return(application.createVariable(VariableType.NONE));
        cfg.addStatement(ret);
    }
View Full Code Here

TOP

Related Classes of dk.brics.string.intermediate.Return

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.