public class GrammarState extends DivInGrammarState
this class provides a new TREXGrammar object to localize names defined within this grammar.
Modifier and Type | Field and Description |
---|---|
protected TREXGrammar |
newGrammar |
protected TREXGrammar |
previousGrammar |
Constructor and Description |
---|
GrammarState() |
Modifier and Type | Method and Description |
---|---|
void |
endSelf()
this method is called in endElement method
when the state is about to be removed.
|
protected Expression |
makeExpression()
This method is called from endElement method.
|
protected void |
startSelf()
performs a task that should be done before reading any child elements.
|
createChildState, getReader, onEndChild
endDocument, endElement, isGrammarElement, startElement
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
protected TREXGrammar previousGrammar
protected TREXGrammar newGrammar
protected Expression makeExpression()
ExpressionState
makeExpression
in class DivInGrammarState
protected void startSelf()
State
public void endSelf()
SimpleState
endSelf
in class ExpressionState