PortInliner inliner) {
// Loop through all the methods and inline calls on ports.
for (Iterator methods = modelClass.getMethods().iterator(); methods
.hasNext();) {
SootMethod method = (SootMethod) methods.next();
JimpleBody body = (JimpleBody) method.retrieveActiveBody();
if (_debug) {
System.out.println("inline inside port body of " + method
+ " = " + body);
}
boolean moreToDo = true;
while (moreToDo) {
moreToDo = _inlineInsideMethodCalls(modelClass, model, method,
body, inliner, _debug);
LocalNameStandardizer.v().transform(body, _phaseName + ".lns");
}
}
// Loop over all the model instance classes.
for (Iterator entities = model.deepEntityList().iterator(); entities
.hasNext();) {
ComponentEntity entity = (ComponentEntity) entities.next();
String className = ModelTransformer.getInstanceClassName(entity,
_options);
SootClass entityClass = Scene.v().loadClassAndSupport(className);
// Loop through all the methods and replace calls on ports.
for (Iterator methods = entityClass.getMethods().iterator(); methods
.hasNext();) {
SootMethod method = (SootMethod) methods.next();
JimpleBody body = (JimpleBody) method.retrieveActiveBody();
//System.out.println("Replacing port invocations in" + method);
// System.out.println("method = " + method);
boolean moreToDo = true;