Class MG4JClassParser


  • public class MG4JClassParser
    extends com.martiansoftware.jsap.stringparsers.ClassStringParser
    A small wrapper around JSAP's standard ClassStringParser. It tries to prefix it.unimi.di.big.mg4j.package. to the provided class name, making the specification of graph classes on the command line much easier.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String[] PACKAGE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MG4JClassParser()  
    • Method Summary

      Modifier and Type Method Description
      static com.martiansoftware.jsap.stringparsers.ClassStringParser getParser()  
      Object parse​(String className)
      Parses the given class name, but as a first try prepends it.unimi.di.big.mg4j.package..
      • Methods inherited from class com.martiansoftware.jsap.StringParser

        setUp, tearDown
    • Field Detail

      • PACKAGE

        public static final String[] PACKAGE
    • Constructor Detail

      • MG4JClassParser

        protected MG4JClassParser()
    • Method Detail

      • getParser

        public static com.martiansoftware.jsap.stringparsers.ClassStringParser getParser()
      • parse

        public Object parse​(String className)
                     throws com.martiansoftware.jsap.ParseException
        Parses the given class name, but as a first try prepends it.unimi.di.big.mg4j.package..
        Overrides:
        parse in class com.martiansoftware.jsap.stringparsers.ClassStringParser
        Parameters:
        className - the name of a class, possibly without package specification.
        Throws:
        com.martiansoftware.jsap.ParseException