Package dk.brics.xact.analysis.flowgraph.statements

Examples of dk.brics.xact.analysis.flowgraph.statements.CallStm


      // non-application classes are handled as extern calls below, so ignore them here
      if (!target.getDeclaringClass().isApplicationClass())
        continue; // XXX will resolveAbstractDispatch actually return non-concrete targets?
      // handle call to application method
      Method method = context.getMethod(target);
      cfg.addStatement(new CallStm(var, method, arguments, context.getCurrentOrigin()));
      cfg.useBranch();
    }
    if (config.canCallExtern(v)) {
      for (int i=0; i<arguments.length; i++) {
          if (!isImmutableType(v.getArg(i).getType())) {
View Full Code Here


            }
            return;
        }
       
        // assign base to the result of the ToXML method
        cfg.addStatement(new CallStm(base, context.getMethod(toxmlMethod), new Variable[0], context.getCurrentOrigin()));
  }
View Full Code Here

        }
        cfg.startBranch();
        for (SootMethod m : (List<SootMethod>)context.getHierarchy().resolveAbstractDispatch(currentClass, Scene.v().getMethod("<dk.brics.xact.ToXMLable: dk.brics.xact.XML toXML()>"))) {
            if (!m.getDeclaringClass().isApplicationClass())
                continue;// skip non-app classes since the config says the class has no extern subtypes
            cfg.addStatement(new CallStm(var, context.getMethod(m), new Variable[0], context.getCurrentOrigin()));
        }
        cfg.endBranch();
        return var;
    }
View Full Code Here

TOP

Related Classes of dk.brics.xact.analysis.flowgraph.statements.CallStm

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.