Interface GeneratorPlugin

    • 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 - The MessageDef that is being translated.
        generalizations - The generalization list to extend.
      • messageInterfaceContents

        default FileGenerator messageInterfaceContents​(Map<String,​Option> options,
                                                       MessageDef def)
        Creates a FileGenerator that is expanded within the interface class.
        Parameters:
        options - The options from the top-level definition file.
        def - The MessageDef that is being translated.
      • messageImplContents

        default FileGenerator messageImplContents​(Map<String,​Option> options,
                                                  MessageDef def)
        Creates a FileGenerator that is expanded within the implementation class.
        Parameters:
        options - The options from the top-level definition file.
        def - The MessageDef that is being translated.