Search in sources :

Example 1 with SelectedEntities

use of org.whole.lang.actions.model.SelectedEntities in project whole by wholeplatform.

the class ActionsDynamicCompilerVisitor method visit.

@Override
public void visit(ActionCall entity) {
    SelectedEntities selectedEntitiesFeature = entity.getSelectedEntities();
    IEntityIterator<?>[] argumentsIterators = null;
    if (EntityUtils.isNotResolver(selectedEntitiesFeature)) {
        selectedEntitiesFeature.accept(this);
        IEntityIterator<?> resultIterator = getResultIterator();
        argumentsIterators = new IEntityIterator<?>[1];
        argumentsIterators[0] = resultIterator;
    }
    setResultIterator(new ActionCallIterator(entity.getName().getValue(), argumentsIterators).withSourceEntity(entity));
}
Also used : ActionCallIterator(org.whole.lang.actions.iterators.ActionCallIterator) SelectedEntities(org.whole.lang.actions.model.SelectedEntities) IEntityIterator(org.whole.lang.iterators.IEntityIterator)

Aggregations

ActionCallIterator (org.whole.lang.actions.iterators.ActionCallIterator)1 SelectedEntities (org.whole.lang.actions.model.SelectedEntities)1 IEntityIterator (org.whole.lang.iterators.IEntityIterator)1