Package de.haumacher.msgbuf.generator
Interface GeneratorPlugin
-
- All Known Implementing Classes:
XmlStreamingPlugin
public interface GeneratorPluginPlug-in to theMessageGenerator.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default voidaddInterfaces(Map<String,Option> options, MessageDef def, List<String> generalizations)Adds interfaces to the generated type.default GeneratorPluginandThen(GeneratorPlugin next)Joins thisGeneratorPluginwith the given one.default voidinit(Map<String,Option> options)Initializes the plug-in with file options.default FileGeneratormessageImplContents(Map<String,Option> options, MessageDef def)Creates aFileGeneratorthat is expanded within the implementation class.default FileGeneratormessageInterfaceContents(Map<String,Option> options, MessageDef def)Creates aFileGeneratorthat is expanded within the interface class.static GeneratorPluginnone()GeneratorPluginthat does not generate any output.
-
-
-
Method Detail
-
init
default void init(Map<String,Option> options)
Initializes the plug-in with file options.- Parameters:
options- The options of the current file to translate.
-
addInterfaces
default void addInterfaces(Map<String,Option> options, MessageDef def, List<String> generalizations)
Adds interfaces to the generated type.- Parameters:
options- The options from the top-level definition file.def- TheMessageDefthat is being translated.generalizations- The generalization list to extend.
-
messageInterfaceContents
default FileGenerator messageInterfaceContents(Map<String,Option> options, MessageDef def)
Creates aFileGeneratorthat is expanded within the interface class.- Parameters:
options- The options from the top-level definition file.def- TheMessageDefthat is being translated.
-
messageImplContents
default FileGenerator messageImplContents(Map<String,Option> options, MessageDef def)
Creates aFileGeneratorthat is expanded within the implementation class.- Parameters:
options- The options from the top-level definition file.def- TheMessageDefthat is being translated.
-
none
static GeneratorPlugin none()
GeneratorPluginthat does not generate any output.
-
andThen
default GeneratorPlugin andThen(GeneratorPlugin next)
Joins thisGeneratorPluginwith the given one.
-
-