use of org.btrplace.safeplace.spec.term.func.FunctionCall in project scheduler by btrplace.
the class MyCstrSpecVisitor method visitCall.
@Override
public FunctionCall visitCall(@NotNull CstrSpecParser.CallContext ctx) {
List<Term> ps = ctx.term().stream().map(t -> (Term<?>) visit(t)).collect(Collectors.toList());
Function f = resolveFunction(ctx.ID().getSymbol(), ps);
FunctionCall.Moment m = FunctionCall.Moment.ANY;
if (ctx.BEGIN() != null) {
m = FunctionCall.Moment.BEGIN;
}
return new FunctionCall(f, ps, m);
}
Aggregations