public class RootParserRuntime extends ParserRuntime
ParserRuntime that parses grammars as the root definition.grammar| Constructor and Description |
|---|
RootParserRuntime(Options _options) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendGlobalBody(java.lang.String code) |
void |
appendGlobalImport(java.lang.String code) |
long |
getGrammarTimestamp() |
NGCCGrammar |
getResult()
Gets the parsed result, or null if there was any error.
|
RootParserRuntime |
getRootRuntime()
Gets the reference to the root runtime.
|
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts) |
addError, createLocator, endElement, getDatatype, getTargetNamespace, iterateErrors, parse, parseSimpleName, processIncludecharacters, consumeAttribute, endDocument, endPrefixMapping, getAttributeIndex, getCurrentAttributes, getLocator, ignorableWhitespace, onEnterElementConsumed, onLeaveElementConsumed, processingInstruction, processList, redirectSubtree, replace, reset, resolveNamespacePrefix, sendEnterAttribute, sendEnterElement, sendLeaveAttribute, sendLeaveElement, sendText, setDocumentLocator, setRootHandler, skippedEntity, startDocument, startPrefixMapping, trace, tracelnpublic RootParserRuntime(Options _options)
public void appendGlobalImport(java.lang.String code)
public void appendGlobalBody(java.lang.String code)
public long getGrammarTimestamp()
public RootParserRuntime getRootRuntime()
ParserRuntimegetRootRuntime in class ParserRuntimepublic NGCCGrammar getResult()
public void startElement(java.lang.String uri,
java.lang.String local,
java.lang.String qname,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class ParserRuntimeorg.xml.sax.SAXException