Class AbstractListingOutput

    • Constructor Detail

      • AbstractListingOutput

        public AbstractListingOutput()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the class, which will be displayed in the GUI.
        Default implementation just returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(Class superclass,
                               Map<String,​List<String>> listing)
        Hook method for performing checks before generating the output.
        Parameters:
        superclass - the superclass this listing is for
        listing - the listing data to check
        Returns:
        null if successful, otherwise error message
      • getModules

        protected List<String> getModules​(Map<String,​List<String>> listing)
        Returns the modules in a sorted list.
        Parameters:
        superclass - the superclass this listing is for
        listing - the listing to get the modules from
        Returns:
        the sorted list
      • doGenerate

        protected abstract String doGenerate​(Class superclass,
                                             Map<String,​List<String>> listing)
        Outputs the supplied listing.
        Parameters:
        superclass - the superclass this listing is for
        listing - the listing to output (module -> classnames)
        Returns:
        null if successful, otherwise error message
      • generate

        public String generate​(Class superclass,
                               Map<String,​List<String>> listing)
        Outputs the supplied listing.
        Parameters:
        superclass - the superclass this listing is for
        listing - the listing to output (module -> classnames)
        Returns:
        null if successful, otherwise error message