Class RootParserRuntime
java.lang.Object
relaxngcc.parser.state.NGCCRuntime
relaxngcc.parser.ParserRuntime
relaxngcc.parser.RootParserRuntime
- All Implemented Interfaces:
ContentHandler, NGCCEventSource
ParserRuntime that parses grammars as the root definition.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
Field Summary
Fields inherited from class ParserRuntime
grammar -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendGlobalBody(String code) voidappendGlobalImport(String code) longGets the parsed result, or null if there was any error.Gets the reference to the root runtime.voidstartElement(String uri, String local, String qname, Attributes atts) Methods inherited from class ParserRuntime
addError, createLocator, endElement, getDatatype, getTargetNamespace, iterateErrors, parse, parseSimpleName, processIncludeMethods inherited from class NGCCRuntime
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, tracelnMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Constructor Details
-
RootParserRuntime
-
-
Method Details
-
appendGlobalImport
-
appendGlobalBody
-
getGrammarTimestamp
public long getGrammarTimestamp() -
getRootRuntime
Description copied from class:ParserRuntimeGets the reference to the root runtime.- Specified by:
getRootRuntimein classParserRuntime
-
getResult
Gets the parsed result, or null if there was any error. -
startElement
public void startElement(String uri, String local, String qname, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classParserRuntime- Throws:
SAXException
-