Top Description Fields Constructors Methods
com.sun.tools.rngom.parse.host

public Class GrammarHost

extends ScopeHost
implements Grammar
Class Inheritance
All Implemented Interfaces
com.sun.tools.rngom.ast.builder.Grammar, com.sun.tools.rngom.ast.builder.Scope, com.sun.tools.rngom.ast.builder.GrammarSection
Imports
com.sun.tools.rngom.ast.builder.Annotations, .BuildException, .Grammar, com.sun.tools.rngom.ast.om.Location, .ParsedPattern

Wraps Grammar and provides error checking.

The following errors are checked by this host:

  1. referenced to undefined patterns.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
pack-priv final Grammar<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>>
pack-priv final Grammar<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>>

Constructor Summary

AccessConstructor and Description
public
GrammarHost(Grammar<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> lhs, Grammar<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> rhs)

Method Summary

Modifier and TypeMethod and Description
public ParsedPattern
Inherited from com.sun.tools.rngom.parse.host.ScopeHost:
makeParentRefmakeRef

Field Detail

lhsback to summary
pack-priv final Grammar<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> lhs

Hides com.sun.tools.rngom.parse.host.ScopeHost.lhs.

rhsback to summary
pack-priv final Grammar<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> rhs

Hides com.sun.tools.rngom.parse.host.ScopeHost.rhs.

Constructor Detail

GrammarHostback to summary
public GrammarHost(Grammar<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> lhs, Grammar<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> rhs)

Method Detail

endGrammarback to summary
public ParsedPattern endGrammar(Location _loc, Annotations<E extends ParsedElementAnnotation, L extends Location, CL extends CommentList<L>> _anno) throws BuildException

Implements com.sun.tools.rngom.ast.builder.Grammar.endGrammar.