final class IncludeImpl extends GrammarBuilderImpl implements Include
| Modifier and Type | Class and Description |
|---|---|
private class |
IncludeImpl.IncludedGrammarImpl |
GrammarSection.Combine| Modifier and Type | Field and Description |
|---|---|
private java.util.Set |
overridenPatterns |
private boolean |
startOverriden |
grammar, parent, sbCOMBINE_CHOICE, COMBINE_INTERLEAVE, START| Constructor and Description |
|---|
IncludeImpl(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.
|
void |
endInclude(Parseable current,
java.lang.String uri,
java.lang.String ns,
Location loc,
Annotations anno) |
endDiv, endGrammar, makeDiv, makeInclude, makeParentRef, makeRef, topLevelAnnotation, topLevelCommentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeDiv, makeInclude, topLevelAnnotation, topLevelCommentprivate java.util.Set overridenPatterns
private boolean startOverriden
public IncludeImpl(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 void endInclude(Parseable current, java.lang.String uri, java.lang.String ns, Location loc, Annotations anno) throws BuildException, IllegalSchemaException
endInclude in interface Includecurrent - The current document we are parsing.
This is the document that contains an include.BuildExceptionIllegalSchemaException