Interface MacroExecutor
- All Known Implementing Classes:
AbstractParser, AbstractTextParser, AbstractXmlParser, Xhtml1BaseParser, Xhtml5BaseParser
public interface MacroExecutor
Interface implemented by all parsers that support macros and which can be used to overwrite macro execution via
Parser.setMacroExecutor(MacroExecutor).-
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteMacro(String macroId, MacroRequest request, org.apache.maven.doxia.sink.Sink sink) Execute a macro on the given sink.
-
Method Details
-
executeMacro
void executeMacro(String macroId, MacroRequest request, org.apache.maven.doxia.sink.Sink sink) throws MacroExecutionException, MacroNotFoundException Execute a macro on the given sink.- Parameters:
macroId- an id to lookup the macrorequest- the corresponding MacroRequestsink- the sink to receive the events- Throws:
MacroExecutionException- if an error occurred during executionMacroNotFoundException- if the macro could not be found
-