public class IncludedGrammarState extends NGCCHandler
Constructor and Description |
---|
IncludedGrammarState(NGCCHandler parent,
NGCCEventSource source,
ParserRuntime runtime,
int cookie) |
IncludedGrammarState(ParserRuntime runtime) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepted() |
void |
enterAttribute(java.lang.String $__uri,
java.lang.String $__local,
java.lang.String $__qname) |
void |
enterElement(java.lang.String $__uri,
java.lang.String $__local,
java.lang.String $__qname,
org.xml.sax.Attributes $attrs) |
NGCCRuntime |
getRuntime()
This method will be implemented by the generated code
and returns a reference to the current runtime.
|
void |
leaveAttribute(java.lang.String $__uri,
java.lang.String $__local,
java.lang.String $__qname) |
void |
leaveElement(java.lang.String $__uri,
java.lang.String $__local,
java.lang.String $__qname) |
void |
onChildCompleted(java.lang.Object $__result__,
int $__cookie__,
boolean $__needAttCheck__)
Notifies the completion of a child object.
|
void |
text(java.lang.String $value) |
revertToParentFromEnterAttribute, revertToParentFromEnterElement, revertToParentFromLeaveAttribute, revertToParentFromLeaveElement, revertToParentFromText, spawnChildFromEnterAttribute, spawnChildFromEnterElement, spawnChildFromLeaveAttribute, spawnChildFromLeaveElement, spawnChildFromText, unexpectedEnterAttribute, unexpectedEnterElement, unexpectedLeaveAttribute, unexpectedLeaveElement
public IncludedGrammarState(NGCCHandler parent, NGCCEventSource source, ParserRuntime runtime, int cookie)
public IncludedGrammarState(ParserRuntime runtime)
public final NGCCRuntime getRuntime()
NGCCHandler
public void enterElement(java.lang.String $__uri, java.lang.String $__local, java.lang.String $__qname, org.xml.sax.Attributes $attrs) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void leaveElement(java.lang.String $__uri, java.lang.String $__local, java.lang.String $__qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void enterAttribute(java.lang.String $__uri, java.lang.String $__local, java.lang.String $__qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void leaveAttribute(java.lang.String $__uri, java.lang.String $__local, java.lang.String $__qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void text(java.lang.String $value) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void onChildCompleted(java.lang.Object $__result__, int $__cookie__, boolean $__needAttCheck__) throws org.xml.sax.SAXException
NGCCHandler
$__result__
- The parsing result of the child state.$__cookie__
- The cookie value passed to the child object
when it is created.$__needAttCheck__
- This flag is true when the callee needs to call the
processAttribute method to check attribute transitions.
This flag is set to false when this method is triggered by
attribute transition.org.xml.sax.SAXException
public boolean accepted()