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

public Class GrammarSectionHost

extends Base
implements GrammarSection
Class Inheritance
All Implemented Interfaces
com.sun.tools.rngom.ast.builder.GrammarSection
Known Direct Subclasses
com.sun.tools.rngom.parse.host.IncludeHost, com.sun.tools.rngom.parse.host.ScopeHost, com.sun.tools.rngom.parse.host.DivHost
Imports
com.sun.tools.rngom.ast.builder.Annotations, .BuildException, .CommentList, .Div, .GrammarSection, .Include, com.sun.tools.rngom.ast.om.Location, .ParsedElementAnnotation, .ParsedPattern

Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final GrammarSection<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>>
private final GrammarSection<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>>

Constructor Summary

AccessConstructor and Description
pack-priv
GrammarSectionHost(GrammarSection<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> lhs, GrammarSection<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 void
define(String name, GrammarSection.Combine combine, ParsedPattern _pattern, Location _loc, Annotations<E extends ParsedElementAnnotation, L extends Location, CL extends CommentList<L>> _anno)

Implements com.sun.tools.rngom.ast.builder.GrammarSection.define.

Called when a pattern is defined.

public Div<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>>
makeDiv()

Implements com.sun.tools.rngom.ast.builder.GrammarSection.makeDiv.

Called when <div> is found.

public Include<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>>
makeInclude()

Implements com.sun.tools.rngom.ast.builder.GrammarSection.makeInclude.

Returns null if already in an include.

public void
public void
topLevelComment(CommentList<L extends Location> _comments)

Implements com.sun.tools.rngom.ast.builder.GrammarSection.topLevelComment.

Called when a comment is found.

Inherited from com.sun.tools.rngom.parse.host.Base:
castcast

Field Detail

lhsback to summary
private final GrammarSection<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> lhs
rhsback to summary
private final GrammarSection<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> rhs

Constructor Detail

GrammarSectionHostback to summary
pack-priv GrammarSectionHost(GrammarSection<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> lhs, GrammarSection<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> rhs)

Method Detail

defineback to summary
public void define(String name, GrammarSection.Combine combine, ParsedPattern _pattern, Location _loc, Annotations<E extends ParsedElementAnnotation, L extends Location, CL extends CommentList<L>> _anno) throws BuildException

Implements com.sun.tools.rngom.ast.builder.GrammarSection.define.

Doc from com.sun.tools.rngom.ast.builder.GrammarSection.define.

Called when a pattern is defined.

makeDivback to summary
public Div<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> makeDiv()

Implements com.sun.tools.rngom.ast.builder.GrammarSection.makeDiv.

Doc from com.sun.tools.rngom.ast.builder.GrammarSection.makeDiv.

Called when <div> is found.

makeIncludeback to summary
public Include<P extends ParsedPattern, E extends ParsedElementAnnotation, L extends Location, A extends Annotations<E, L, CL>, CL extends CommentList<L>> makeInclude()

Implements com.sun.tools.rngom.ast.builder.GrammarSection.makeInclude.

Doc from com.sun.tools.rngom.ast.builder.GrammarSection.makeInclude.

Returns null if already in an include.

topLevelAnnotationback to summary
public void topLevelAnnotation(ParsedElementAnnotation _ea) throws BuildException

Implements com.sun.tools.rngom.ast.builder.GrammarSection.topLevelAnnotation.

Doc from com.sun.tools.rngom.ast.builder.GrammarSection.topLevelAnnotation.

Called when an annotation is found.

topLevelCommentback to summary
public void topLevelComment(CommentList<L extends Location> _comments) throws BuildException

Implements com.sun.tools.rngom.ast.builder.GrammarSection.topLevelComment.

Doc from com.sun.tools.rngom.ast.builder.GrammarSection.topLevelComment.

Called when a comment is found.