Class BnfSyntax

  • All Implemented Interfaces:
    org.h2.bnf.BnfVisitor

    public class BnfSyntax
    extends java.lang.Object
    implements org.h2.bnf.BnfVisitor
    A BNF visitor that generates BNF in HTML form.
    • Constructor Summary

      Constructors 
      Constructor Description
      BnfSyntax()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHtml​(org.h2.bnf.Bnf bnf, java.lang.String syntaxLines)
      Get the HTML syntax 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BnfSyntax

        public BnfSyntax()
    • Method Detail

      • getHtml

        public java.lang.String getHtml​(org.h2.bnf.Bnf bnf,
                                        java.lang.String syntaxLines)
        Get the HTML syntax for the given syntax.
        Parameters:
        bnf - the BNF
        syntaxLines - the syntax
        Returns:
        the HTML
      • visitRuleElement

        public void visitRuleElement​(boolean keyword,
                                     java.lang.String name,
                                     org.h2.bnf.Rule link)
        Specified by:
        visitRuleElement in interface org.h2.bnf.BnfVisitor
      • visitRuleFixed

        public void visitRuleFixed​(int type)
        Specified by:
        visitRuleFixed in interface org.h2.bnf.BnfVisitor
      • visitRuleList

        public void visitRuleList​(boolean or,
                                  java.util.ArrayList<org.h2.bnf.Rule> list)
        Specified by:
        visitRuleList in interface org.h2.bnf.BnfVisitor
      • visitRuleOptional

        public void visitRuleOptional​(org.h2.bnf.Rule rule)
        Specified by:
        visitRuleOptional in interface org.h2.bnf.BnfVisitor
      • visitRuleRepeat

        public void visitRuleRepeat​(boolean comma,
                                    org.h2.bnf.Rule rule)
        Specified by:
        visitRuleRepeat in interface org.h2.bnf.BnfVisitor
      • visitRuleOptional

        public void visitRuleOptional​(java.util.ArrayList<org.h2.bnf.Rule> list)
        Specified by:
        visitRuleOptional in interface org.h2.bnf.BnfVisitor
      • visitRuleExtension

        public void visitRuleExtension​(org.h2.bnf.Rule rule,
                                       boolean compatibility)
        Specified by:
        visitRuleExtension in interface org.h2.bnf.BnfVisitor