Div<P,E,L,A,CL>, Grammar<P,E,L,A,CL>, Include<P,E,L,A,CL>, IncludedGrammar<P,E,L,A,CL>, Scope<P,E,L,A,CL>DivHost, GrammarHost, GrammarSectionHost, IncludeHost, ScopeHostpublic interface GrammarSection<P extends ParsedPattern,E extends ParsedElementAnnotation,L extends Location,A extends Annotations<E,L,CL>,CL extends CommentList<L>>
<define> elements.
Div, Grammar, Include, or IncludedGrammar.
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
GrammarSection.Combine |
| Modifier and Type | Field | Description |
|---|---|---|
static GrammarSection.Combine |
COMBINE_CHOICE |
|
static GrammarSection.Combine |
COMBINE_INTERLEAVE |
|
static java.lang.String |
START |
| Modifier and Type | Method | Description |
|---|---|---|
void |
define(java.lang.String name,
GrammarSection.Combine combine,
P pattern,
L loc,
A anno) |
Called when a pattern is defined.
|
Div<P,E,L,A,CL> |
makeDiv() |
Called when
<div> is found. |
Include<P,E,L,A,CL> |
makeInclude() |
Returns null if already in an include.
|
void |
topLevelAnnotation(E ea) |
Called when an annotation is found.
|
void |
topLevelComment(CL comments) |
Called when a comment is found.
|
static final GrammarSection.Combine COMBINE_CHOICE
static final GrammarSection.Combine COMBINE_INTERLEAVE
static final java.lang.String START
void define(java.lang.String name,
GrammarSection.Combine combine,
P pattern,
L loc,
A anno)
throws BuildException
name - Name of the pattern. For the definition by a <start/> element,
this parameter is the same as START.
to test if it's a named pattern definition or the start pattern definition.combine - null or COMBINE_CHOICE or COMBINE_INTERLEAVE depending
on the value of the combine attribute.pattern - The pattern to be defined.BuildExceptionvoid topLevelAnnotation(E ea) throws BuildException
BuildExceptionvoid topLevelComment(CL comments) throws BuildException
BuildExceptionDiv<P,E,L,A,CL> makeDiv()
<div> is found.Div object will receive callbacks for structures
inside the <div> element.Copyright © 2018 Oracle Corporation. All rights reserved.