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 StringgetHtml(org.h2.bnf.Bnf bnf, String syntaxLines)Generate the HTML for the given syntax.voidvisitRuleElement(boolean keyword, String name, org.h2.bnf.Rule link)voidvisitRuleExtension(org.h2.bnf.Rule rule, boolean compatibility)voidvisitRuleFixed(int type)voidvisitRuleList(boolean or, ArrayList<org.h2.bnf.Rule> list)voidvisitRuleOptional(ArrayList<org.h2.bnf.Rule> list)voidvisitRuleOptional(org.h2.bnf.Rule rule)voidvisitRuleRepeat(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:
visitRuleElementin interfaceorg.h2.bnf.BnfVisitor
-
visitRuleRepeat
public void visitRuleRepeat(boolean comma, org.h2.bnf.Rule rule)- Specified by:
visitRuleRepeatin interfaceorg.h2.bnf.BnfVisitor
-
visitRuleFixed
public void visitRuleFixed(int type)
- Specified by:
visitRuleFixedin interfaceorg.h2.bnf.BnfVisitor
-
visitRuleList
public void visitRuleList(boolean or, ArrayList<org.h2.bnf.Rule> list)- Specified by:
visitRuleListin interfaceorg.h2.bnf.BnfVisitor
-
visitRuleOptional
public void visitRuleOptional(org.h2.bnf.Rule rule)
- Specified by:
visitRuleOptionalin interfaceorg.h2.bnf.BnfVisitor
-
visitRuleOptional
public void visitRuleOptional(ArrayList<org.h2.bnf.Rule> list)
- Specified by:
visitRuleOptionalin interfaceorg.h2.bnf.BnfVisitor
-
visitRuleExtension
public void visitRuleExtension(org.h2.bnf.Rule rule, boolean compatibility)- Specified by:
visitRuleExtensionin interfaceorg.h2.bnf.BnfVisitor
-
-