use of org.abs_models.frontend.ast.Call in project abstools by abstools.
the class AbsASTBuilderUtil method getCall.
public static final Call getCall(PureExp who, String method, boolean sync, PureExp... exps) {
Call call;
if (sync) {
call = new SyncCall();
} else {
call = new AsyncCall();
}
call.setCallee(who);
call.setMethod(method);
for (int i = 0; i < exps.length; i++) {
call.setParam(exps[i], i);
}
return call;
}