Package org.opencypher.tools.grammar
Class RailRoadDiagrams
- java.lang.Object
-
- org.opencypher.tools.grammar.RailRoadDiagrams
-
- All Implemented Interfaces:
Function<Method,Object>,ShapeRenderer.Linker
public final class RailRoadDiagrams extends Object implements ShapeRenderer.Linker
Generates railroad diagrams (as SVG files) for each of the productions in aGrammar.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectapply(Method key)StringcharsetLink(String charset)static voidmain(String... args)protected static <T extends org.opencypher.tools.grammar.Tool>
voidmain(org.opencypher.tools.grammar.Tool.Constructor<T> constructor, org.opencypher.tools.grammar.Tool.Entry<T> entry, String... args)protected <T> Toptions(Class<T> type, Option<T>... options)protected PathoutputDir()StringreferenceLink(String reference)protected <T> Ttransform(Class<T> type, String value)
-
-
-
Method Detail
-
referenceLink
public String referenceLink(String reference)
- Specified by:
referenceLinkin interfaceShapeRenderer.Linker
-
charsetLink
public String charsetLink(String charset)
- Specified by:
charsetLinkin interfaceShapeRenderer.Linker
-
main
protected static <T extends org.opencypher.tools.grammar.Tool> void main(org.opencypher.tools.grammar.Tool.Constructor<T> constructor, org.opencypher.tools.grammar.Tool.Entry<T> entry, String... args) throws Exception- Throws:
Exception
-
options
@SafeVarargs protected final <T> T options(Class<T> type, Option<T>... options)
-
outputDir
protected final Path outputDir() throws IOException
- Throws:
IOException
-
-