Package org.opencypher.tools.grammar
Class RailRoadDiagramPages
- java.lang.Object
-
- org.opencypher.tools.grammar.RailRoadDiagramPages
-
- All Implemented Interfaces:
Function<Method,Object>,ShapeRenderer.Linker,HtmlLinker
public final class RailRoadDiagramPages extends Object implements ShapeRenderer.Linker, HtmlLinker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRailRoadDiagramPages.BnfFlavourstatic interfaceRailRoadDiagramPages.ProductionDetailsLinker
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectapply(Method key)StringcharsetLink(String charset)static voidgenerate(Grammar grammar, Path workingDir, Output output, Map<String,?> properties)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)StringreferenceLink(NonTerminal reference)protected <T> Ttransform(Class<T> type, String value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencypher.tools.grammar.HtmlLinker
charsetLink
-
-
-
-
Method Detail
-
generate
public static void generate(Grammar grammar, Path workingDir, Output output, Map<String,?> properties) throws IOException, XMLStreamException
- Throws:
IOExceptionXMLStreamException
-
referenceLink
public String referenceLink(NonTerminal reference)
- Specified by:
referenceLinkin interfaceHtmlLinker
-
referenceLink
public String referenceLink(String reference)
- Specified by:
referenceLinkin interfaceShapeRenderer.Linker
-
charsetLink
public String charsetLink(String charset)
- Specified by:
charsetLinkin interfaceHtmlLinker- 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
-
-