- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ElementWriterWrites an element into the given writer.
void writeTo(Writer out, ElementContext context) throws Exception
Writes the element into the given writer. This should include everything added before the body, the body itself, and everything after after the body.
For efficiency, this should not be called when the output would otherwise be discarded.