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 com.martiansoftware.jsap.stringparsers.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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableGraph
getGraphFromSpec
(String spec) Deprecated.static com.martiansoftware.jsap.stringparsers.ClassStringParser
Parses the given class name, but as a first try prepends the package names found inPACKAGE
.Methods inherited from class com.martiansoftware.jsap.StringParser
setUp, tearDown
-
Field Details
-
PACKAGE
The packages that will be prepended to each graph class.
-
-
Constructor Details
-
GraphClassParser
protected GraphClassParser()
-
-
Method Details
-
getParser
public static com.martiansoftware.jsap.stringparsers.ClassStringParser getParser() -
parse
Parses the given class name, but as a first try prepends the package names found inPACKAGE
.- Overrides:
parse
in classcom.martiansoftware.jsap.stringparsers.ClassStringParser
- Parameters:
className
- the name of a class, possibly without package specification.- Throws:
com.martiansoftware.jsap.ParseException
-
getGraphFromSpec
@Deprecated public static ImmutableGraph getGraphFromSpec(String spec) throws com.martiansoftware.jsap.ParseException Deprecated.UseObjectParser.fromSpec(String, Class, String[], String[])
.- Throws:
com.martiansoftware.jsap.ParseException
-
ObjectParser.fromSpec(String, Class, String[], String[])
.