public class GrammarSectionHost extends Base implements GrammarSection
GrammarSection.Combine
COMBINE_CHOICE, COMBINE_INTERLEAVE, START
Modifier and Type | Method and Description |
---|---|
void |
define(java.lang.String name,
GrammarSection.Combine combine,
ParsedPattern _pattern,
Location _loc,
Annotations _anno)
Called when a pattern is defined.
|
Div |
makeDiv()
Called when <div> is found.
|
Include |
makeInclude()
Returns null if already in an include.
|
void |
topLevelAnnotation(ParsedElementAnnotation _ea)
Called when an annotation is found.
|
void |
topLevelComment(CommentList _comments)
Called when a comment is found.
|
public void define(java.lang.String name, GrammarSection.Combine combine, ParsedPattern _pattern, Location _loc, Annotations _anno) throws BuildException
GrammarSection
define
in interface GrammarSection
name
- Name of the pattern. For the definition by a <start/> element,
this parameter is the same as GrammarSection.START
.
to test if it's a named pattern definition or the start pattern definition.combine
- null or GrammarSection.COMBINE_CHOICE
or GrammarSection.COMBINE_INTERLEAVE
depending
on the value of the combine attribute._pattern
- The pattern to be defined.BuildException
public Div makeDiv()
GrammarSection
makeDiv
in interface GrammarSection
Div
object will receive callbacks for structures
inside the <div> element.public Include makeInclude()
GrammarSection
makeInclude
in interface GrammarSection
public void topLevelAnnotation(ParsedElementAnnotation _ea) throws BuildException
GrammarSection
topLevelAnnotation
in interface GrammarSection
BuildException
public void topLevelComment(CommentList _comments) throws BuildException
GrammarSection
topLevelComment
in interface GrammarSection
BuildException
Copyright © 2010 - 2020 Adobe. All Rights Reserved