private void emitMessagesImpl( TypeElement baseElement, Log log, Set<MessageContainer> visitedSinks) { for (Message message : getMessages()) { emitDefault(baseElement, log, message); } for (MessageContainer sink : findChildContainers()) { if (visitedSinks.contains(sink)) { continue; } visitedSinks.add(sink); sink.emitMessagesImpl(baseElement, log, visitedSinks); } }
public final void emitMessages(TypeElement baseElement, Log log) { emitMessagesImpl(baseElement, log, new HashSet<MessageContainer>()); }