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, onEndChildendDocument, endElement, isGrammarElement, startElement_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMappingprotected TREXGrammar previousGrammar
protected TREXGrammar newGrammar
protected Expression makeExpression()
ExpressionStatemakeExpression in class DivInGrammarStateprotected void startSelf()
Statepublic void endSelf()
SimpleStateendSelf in class ExpressionStateCopyright © 2016 Oracle Corporation. All Rights Reserved.