public class BnfRailroad
extends java.lang.Object
implements org.h2.bnf.BnfVisitor
Constructor and Description |
---|
BnfRailroad() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHtml(org.h2.bnf.Bnf bnf,
java.lang.String syntaxLines)
Generate the HTML for the given syntax.
|
void |
visitRuleElement(boolean keyword,
java.lang.String name,
org.h2.bnf.Rule link) |
void |
visitRuleExtension(org.h2.bnf.Rule rule,
boolean compatibility) |
void |
visitRuleFixed(int type) |
void |
visitRuleList(boolean or,
java.util.ArrayList<org.h2.bnf.Rule> list) |
void |
visitRuleOptional(java.util.ArrayList<org.h2.bnf.Rule> list) |
void |
visitRuleOptional(org.h2.bnf.Rule rule) |
void |
visitRuleRepeat(boolean comma,
org.h2.bnf.Rule rule) |
public java.lang.String getHtml(org.h2.bnf.Bnf bnf, java.lang.String syntaxLines)
bnf
- the BNF parsersyntaxLines
- the syntaxpublic void visitRuleElement(boolean keyword, java.lang.String name, org.h2.bnf.Rule link)
visitRuleElement
in interface org.h2.bnf.BnfVisitor
public void visitRuleRepeat(boolean comma, org.h2.bnf.Rule rule)
visitRuleRepeat
in interface org.h2.bnf.BnfVisitor
public void visitRuleFixed(int type)
visitRuleFixed
in interface org.h2.bnf.BnfVisitor
public void visitRuleList(boolean or, java.util.ArrayList<org.h2.bnf.Rule> list)
visitRuleList
in interface org.h2.bnf.BnfVisitor
public void visitRuleOptional(org.h2.bnf.Rule rule)
visitRuleOptional
in interface org.h2.bnf.BnfVisitor
public void visitRuleOptional(java.util.ArrayList<org.h2.bnf.Rule> list)
visitRuleOptional
in interface org.h2.bnf.BnfVisitor
public void visitRuleExtension(org.h2.bnf.Rule rule, boolean compatibility)
visitRuleExtension
in interface org.h2.bnf.BnfVisitor
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.