private class IncludeImpl.IncludedGrammarImpl extends GrammarBuilderImpl implements IncludedGrammar
GrammarSection.Combinegrammar, parent, sbCOMBINE_CHOICE, COMBINE_INTERLEAVE, START| Constructor and Description |
|---|
IncludedGrammarImpl(DGrammarPattern p,
Scope parent,
DSchemaBuilderImpl sb) |
| 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.
|
ParsedPattern |
endIncludedGrammar(Location loc,
Annotations anno) |
endDiv, endGrammar, makeDiv, makeInclude, makeParentRef, makeRef, topLevelAnnotation, topLevelCommentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeParentRef, makeRefmakeDiv, makeInclude, topLevelAnnotation, topLevelCommentpublic IncludedGrammarImpl(DGrammarPattern p, Scope parent, DSchemaBuilderImpl sb)
public void define(java.lang.String name,
GrammarSection.Combine combine,
ParsedPattern pattern,
Location loc,
Annotations anno)
throws BuildException
GrammarSectiondefine in interface GrammarSectiondefine in class GrammarBuilderImplname - 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.BuildExceptionpublic ParsedPattern endIncludedGrammar(Location loc, Annotations anno) throws BuildException
endIncludedGrammar in interface IncludedGrammarParseable.parseInclude(String, SchemaBuilder, IncludedGrammar, String)
to return the result from IncludedGrammar nicely.
The value returned from this method will be returned from the abovementioned method.
BuildException