Package adams.core

Class ClassListerJson

  • All Implemented Interfaces:
    Serializable

    public class ClassListerJson
    extends ClassLister
    Same as ClassLister, but with support for outputting JSON when calling the main method.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • CLASSLISTERJSON_CLASSES

        public static final String CLASSLISTERJSON_CLASSES
        for statically listed classes (superclass -> comma-separated classnames).
        See Also:
        Constant Field Values
      • CLASSLISTERJSON_PACKAGES

        public static final String CLASSLISTERJSON_PACKAGES
        for statically listed packages (superclass -> comma-separated packages).
        See Also:
        Constant Field Values
    • Constructor Detail

      • ClassListerJson

        public ClassListerJson()
    • Method Detail

      • getFormat

        protected static String getFormat​(String[] args)
                                   throws Exception
        Extracts the format from the command-line options.
        Parameters:
        args - the options to parse
        Returns:
        the format
        Throws:
        Exception - if unsupported format encountered
      • main

        public static void main​(String[] args)
                         throws Exception
        Outputs a list of available conversions.
        Parameters:
        args - the commandline options: [-env classname] [-super classname] [-match regexp]
        Throws:
        Exception - if invalid environment class or invalid regular expression