Class BnfRailroad
- java.lang.Object
-
- org.apache.jackrabbit.oak.doc.doxia.jcr.BnfRailroad
-
- All Implemented Interfaces:
org.h2.bnf.BnfVisitor
public class BnfRailroad extends Object implements org.h2.bnf.BnfVisitor
A BNF visitor that generates HTML railroad diagrams.
-
-
Constructor Summary
Constructors Constructor Description BnfRailroad()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHtml(org.h2.bnf.Bnf bnf, String syntaxLines)
Generate 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)
-
-
-
Method Detail
-
getHtml
public String getHtml(org.h2.bnf.Bnf bnf, String syntaxLines)
Generate the HTML for the given syntax.- Parameters:
bnf
- the BNF parsersyntaxLines
- the syntax- Returns:
- the HTML
-
visitRuleElement
public void visitRuleElement(boolean keyword, String name, org.h2.bnf.Rule link)
- 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
public void visitRuleList(boolean or, ArrayList<org.h2.bnf.Rule> list)
- 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
public void visitRuleOptional(ArrayList<org.h2.bnf.Rule> list)
- 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
-
-