Package de.haumacher.msgbuf.generator
Interface GeneratorPlugin
- All Known Implementing Classes:
XmlStreamingPlugin
public interface GeneratorPlugin
Plug-in to the
MessageGenerator.-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 voidInitializes 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 Details
-
init
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
Creates aFileGeneratorthat is expanded within the interface class.- Parameters:
options- The options from the top-level definition file.def- TheMessageDefthat is being translated.
-
messageImplContents
Creates aFileGeneratorthat is expanded within the implementation class.- Parameters:
options- The options from the top-level definition file.def- TheMessageDefthat is being translated.
-
none
GeneratorPluginthat does not generate any output. -
andThen
Joins thisGeneratorPluginwith the given one.
-