Package it.unimi.dsi.webgraph
Class GraphClassParser
java.lang.Object
com.martiansoftware.jsap.StringParser
com.martiansoftware.jsap.stringparsers.ClassStringParser
it.unimi.dsi.webgraph.GraphClassParser
public class GraphClassParser extends ClassStringParser
A small wrapper around JSAP's standard
ClassStringParser
. It
tries to prefix the package names in 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 java.lang.String[]
PACKAGE
The packages that will be prepended to each graph class. -
Constructor Summary
Constructors Modifier Constructor Description protected
GraphClassParser()
-
Method Summary
Modifier and Type Method Description static ImmutableGraph
getGraphFromSpec(java.lang.String spec)
Deprecated.static ClassStringParser
getParser()
java.lang.Object
parse(java.lang.String className)
Parses the given class name, but as a first try prepends the package names found inPACKAGE
.
-
Field Details
-
PACKAGE
public static final java.lang.String[] PACKAGEThe packages that will be prepended to each graph class.
-
-
Constructor Details
-
GraphClassParser
protected GraphClassParser()
-
-
Method Details
-
getParser
-
parse
Parses the given class name, but as a first try prepends the package names found inPACKAGE
.- Overrides:
parse
in classClassStringParser
- Parameters:
className
- the name of a class, possibly without package specification.- Throws:
ParseException
-
getGraphFromSpec
@Deprecated public static ImmutableGraph getGraphFromSpec(java.lang.String spec) throws ParseExceptionDeprecated.- Throws:
ParseException
-