Class Grammar


  • public final class Grammar
    extends Scope
    Set of Scopes.

    Grammar as Scope holds information about the start pattern. This allows us to easily recognize Grammar in the parsed tree.

    Author:
    Kohsuke Kawaguchi (kk@kohsuke.org)
    • Field Detail

      • parent

        public final Grammar parent
        Parent Grammar object, if any. Otherwise null.
    • Method Detail

      • get

        public Scope get​(java.lang.String name)
        Gets the Scope object or return null.
      • iterateScopes

        public java.util.Iterator iterateScopes()
        Iterates all the named Scopes in this grammar.