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;
}
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;
}
Aggregations