com.thaiopensource.relaxng.impl
Class SchemaBuilderImpl.GrammarImpl
java.lang.Object
com.thaiopensource.relaxng.impl.SchemaBuilderImpl.GrammarImpl
- All Implemented Interfaces:
- Div, Grammar, GrammarSection, IncludedGrammar, Scope
- Enclosing class:
- SchemaBuilderImpl
static class SchemaBuilderImpl.GrammarImpl
- extends Object
- implements Grammar, Div, IncludedGrammar
Method Summary |
private void |
define(RefPattern rp,
GrammarSection.Combine combine,
ParsedPattern pattern,
Location loc)
|
void |
define(String name,
GrammarSection.Combine combine,
ParsedPattern pattern,
Location loc,
Annotations anno)
|
void |
endDiv(Location loc,
Annotations anno)
|
ParsedPattern |
endGrammar(Location loc,
Annotations anno)
|
ParsedPattern |
endIncludedGrammar(Location loc,
Annotations anno)
|
private RefPattern |
lookup(String name)
|
private RefPattern |
lookup1(String name)
|
Div |
makeDiv()
|
Include |
makeInclude()
Returns null if already in an include. |
ParsedPattern |
makeParentRef(String name,
Location loc,
Annotations anno)
|
ParsedPattern |
makeRef(String name,
Location loc,
Annotations anno)
|
void |
topLevelAnnotation(ParsedElementAnnotation ea)
|
void |
topLevelComment(CommentList comments)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sb
private final SchemaBuilderImpl sb
defines
private final Hashtable defines
startRef
private final RefPattern startRef
parent
private final Scope parent
SchemaBuilderImpl.GrammarImpl
private SchemaBuilderImpl.GrammarImpl(SchemaBuilderImpl sb,
Scope parent)
SchemaBuilderImpl.GrammarImpl
protected SchemaBuilderImpl.GrammarImpl(SchemaBuilderImpl sb,
SchemaBuilderImpl.GrammarImpl g)
endGrammar
public ParsedPattern endGrammar(Location loc,
Annotations anno)
throws BuildException
- Specified by:
endGrammar
in interface Grammar
- Throws:
BuildException
endDiv
public void endDiv(Location loc,
Annotations anno)
throws BuildException
- Specified by:
endDiv
in interface Div
- Throws:
BuildException
endIncludedGrammar
public ParsedPattern endIncludedGrammar(Location loc,
Annotations anno)
throws BuildException
- Specified by:
endIncludedGrammar
in interface IncludedGrammar
- Throws:
BuildException
define
public void define(String name,
GrammarSection.Combine combine,
ParsedPattern pattern,
Location loc,
Annotations anno)
throws BuildException
- Specified by:
define
in interface GrammarSection
- Throws:
BuildException
define
private void define(RefPattern rp,
GrammarSection.Combine combine,
ParsedPattern pattern,
Location loc)
throws BuildException
- Throws:
BuildException
topLevelAnnotation
public void topLevelAnnotation(ParsedElementAnnotation ea)
throws BuildException
- Specified by:
topLevelAnnotation
in interface GrammarSection
- Throws:
BuildException
topLevelComment
public void topLevelComment(CommentList comments)
throws BuildException
- Specified by:
topLevelComment
in interface GrammarSection
- Throws:
BuildException
lookup
private RefPattern lookup(String name)
lookup1
private RefPattern lookup1(String name)
makeRef
public ParsedPattern makeRef(String name,
Location loc,
Annotations anno)
throws BuildException
- Specified by:
makeRef
in interface Scope
- Throws:
BuildException
makeParentRef
public ParsedPattern makeParentRef(String name,
Location loc,
Annotations anno)
throws BuildException
- Specified by:
makeParentRef
in interface Scope
- Throws:
BuildException
makeDiv
public Div makeDiv()
- Specified by:
makeDiv
in interface GrammarSection
makeInclude
public Include makeInclude()
- Description copied from interface:
GrammarSection
- Returns null if already in an include.
- Specified by:
makeInclude
in interface GrammarSection