org.kohsuke.rngom.parse.host
Class GrammarHost

java.lang.Object
  extended by org.kohsuke.rngom.parse.host.Base
      extended by org.kohsuke.rngom.parse.host.GrammarSectionHost
          extended by org.kohsuke.rngom.parse.host.ScopeHost
              extended by org.kohsuke.rngom.parse.host.GrammarHost
All Implemented Interfaces:
Grammar, GrammarSection, Scope

public class GrammarHost
extends ScopeHost
implements Grammar

Wraps Grammar and provides error checking.

The following errors are checked by this host:

  1. referenced to undefined patterns.

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.kohsuke.rngom.ast.builder.GrammarSection
GrammarSection.Combine
 
Field Summary
 
Fields inherited from interface org.kohsuke.rngom.ast.builder.GrammarSection
COMBINE_CHOICE, COMBINE_INTERLEAVE, START
 
Constructor Summary
GrammarHost(Grammar lhs, Grammar rhs)
           
 
Method Summary
 ParsedPattern endGrammar(Location _loc, Annotations _anno)
           
 
Methods inherited from class org.kohsuke.rngom.parse.host.ScopeHost
makeParentRef, makeRef
 
Methods inherited from class org.kohsuke.rngom.parse.host.GrammarSectionHost
define, makeDiv, makeInclude, topLevelAnnotation, topLevelComment
 
Methods inherited from class org.kohsuke.rngom.parse.host.Base
cast, cast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kohsuke.rngom.ast.builder.Scope
makeParentRef, makeRef
 
Methods inherited from interface org.kohsuke.rngom.ast.builder.GrammarSection
define, makeDiv, makeInclude, topLevelAnnotation, topLevelComment
 

Constructor Detail

GrammarHost

public GrammarHost(Grammar lhs,
                   Grammar rhs)
Method Detail

endGrammar

public ParsedPattern endGrammar(Location _loc,
                                Annotations _anno)
                         throws BuildException
Specified by:
endGrammar in interface Grammar
Throws:
BuildException


Copyright © 2011. All Rights Reserved.