Search in sources :

Example 1 with MappedCompleteCoordinator

use of me.panavtec.coordinator.compiler.model.MappedCompleteCoordinator in project Coordinator-java by PaNaVTEC.

the class CompleteCoordinatorProcessor method createMappedAction.

@Override
protected MappedCompleteCoordinator createMappedAction(Element e) {
    CoordinatorComplete mappedAnnotation = e.getAnnotation(CoordinatorComplete.class);
    MappedCompleteCoordinator complete = new MappedCompleteCoordinator();
    complete.setCoordinatorId(mappedAnnotation.coordinatorId());
    return complete;
}
Also used : MappedCompleteCoordinator(me.panavtec.coordinator.compiler.model.MappedCompleteCoordinator) CoordinatorComplete(me.panavtec.coordinator.qualifiers.CoordinatorComplete)

Example 2 with MappedCompleteCoordinator

use of me.panavtec.coordinator.compiler.model.MappedCompleteCoordinator in project Coordinator-java by PaNaVTEC.

the class CoordinatorProcessor method processAnnotations.

public Collection<EnclosingCoordinator> processAnnotations(RoundEnvironment roundEnv) {
    Collection<EnclosingCoordinator> enclosings = processCoordinators(roundEnv);
    List<MappedCompleteCoordinator> complete = processComplete(roundEnv);
    List<MappedCoordinatedAction> actions = processCoordinatedActions(roundEnv);
    for (EnclosingCoordinator enclosing : enclosings) {
        for (MappedCoordinator coordinator : enclosing.getCoordinators()) {
            assignAction(actions, enclosing, coordinator);
            assignCompleteAction(complete, enclosing, coordinator);
        }
        checkForCompleteErrors(enclosing);
    }
    return enclosings;
}
Also used : MappedCompleteCoordinator(me.panavtec.coordinator.compiler.model.MappedCompleteCoordinator) EnclosingCoordinator(me.panavtec.coordinator.compiler.model.EnclosingCoordinator) MappedCoordinator(me.panavtec.coordinator.compiler.model.MappedCoordinator) MappedCoordinatedAction(me.panavtec.coordinator.compiler.model.MappedCoordinatedAction)

Aggregations

MappedCompleteCoordinator (me.panavtec.coordinator.compiler.model.MappedCompleteCoordinator)2 EnclosingCoordinator (me.panavtec.coordinator.compiler.model.EnclosingCoordinator)1 MappedCoordinatedAction (me.panavtec.coordinator.compiler.model.MappedCoordinatedAction)1 MappedCoordinator (me.panavtec.coordinator.compiler.model.MappedCoordinator)1 CoordinatorComplete (me.panavtec.coordinator.qualifiers.CoordinatorComplete)1