Search in sources :

Example 1 with Call

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;
}
Also used : SyncCall(org.abs_models.frontend.ast.SyncCall) Call(org.abs_models.frontend.ast.Call) AsyncCall(org.abs_models.frontend.ast.AsyncCall) SyncCall(org.abs_models.frontend.ast.SyncCall) AsyncCall(org.abs_models.frontend.ast.AsyncCall)

Aggregations

AsyncCall (org.abs_models.frontend.ast.AsyncCall)1 Call (org.abs_models.frontend.ast.Call)1 SyncCall (org.abs_models.frontend.ast.SyncCall)1