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, processInclude
characters, 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, traceln
public RootParserRuntime(Options _options)
public void appendGlobalImport(java.lang.String code)
public void appendGlobalBody(java.lang.String code)
public long getGrammarTimestamp()
public RootParserRuntime getRootRuntime()
ParserRuntime
getRootRuntime
in class ParserRuntime
public 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.ContentHandler
startElement
in class ParserRuntime
org.xml.sax.SAXException