Class BnfRailroad
java.lang.Object
org.apache.jackrabbit.oak.doc.doxia.jcr.BnfRailroad
- All Implemented Interfaces:
org.h2.bnf.BnfVisitor
A BNF visitor that generates HTML railroad diagrams.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate the HTML for the given syntax.void
visitRuleElement
(boolean keyword, String name, org.h2.bnf.Rule link) void
visitRuleExtension
(org.h2.bnf.Rule rule, boolean compatibility) void
visitRuleFixed
(int type) void
visitRuleList
(boolean or, ArrayList<org.h2.bnf.Rule> list) void
visitRuleOptional
(ArrayList<org.h2.bnf.Rule> list) void
visitRuleOptional
(org.h2.bnf.Rule rule) void
visitRuleRepeat
(boolean comma, org.h2.bnf.Rule rule)
-
Constructor Details
-
BnfRailroad
public BnfRailroad()
-
-
Method Details
-
getHtml
Generate the HTML for the given syntax.- Parameters:
bnf
- the BNF parsersyntaxLines
- the syntax- Returns:
- the HTML
-
visitRuleElement
- Specified by:
visitRuleElement
in interfaceorg.h2.bnf.BnfVisitor
-
visitRuleRepeat
public void visitRuleRepeat(boolean comma, org.h2.bnf.Rule rule) - Specified by:
visitRuleRepeat
in interfaceorg.h2.bnf.BnfVisitor
-
visitRuleFixed
public void visitRuleFixed(int type) - Specified by:
visitRuleFixed
in interfaceorg.h2.bnf.BnfVisitor
-
visitRuleList
- Specified by:
visitRuleList
in interfaceorg.h2.bnf.BnfVisitor
-
visitRuleOptional
public void visitRuleOptional(org.h2.bnf.Rule rule) - Specified by:
visitRuleOptional
in interfaceorg.h2.bnf.BnfVisitor
-
visitRuleOptional
- Specified by:
visitRuleOptional
in interfaceorg.h2.bnf.BnfVisitor
-
visitRuleExtension
public void visitRuleExtension(org.h2.bnf.Rule rule, boolean compatibility) - Specified by:
visitRuleExtension
in interfaceorg.h2.bnf.BnfVisitor
-