Package it.unimi.di.big.mg4j.util
Class MG4JClassParser
- java.lang.Object
-
- com.martiansoftware.jsap.StringParser
-
- com.martiansoftware.jsap.stringparsers.ClassStringParser
-
- it.unimi.di.big.mg4j.util.MG4JClassParser
-
public class MG4JClassParser extends com.martiansoftware.jsap.stringparsers.ClassStringParser
A small wrapper around JSAP's standardClassStringParser
. 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MG4JClassParser()
-
-
-
Field Detail
-
PACKAGE
public static final String[] PACKAGE
-
-
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 classcom.martiansoftware.jsap.stringparsers.ClassStringParser
- Parameters:
className
- the name of a class, possibly without package specification.- Throws:
com.martiansoftware.jsap.ParseException
-
-