Package relaxngcc.parser
Class RootParserRuntime
- java.lang.Object
-
- relaxngcc.parser.state.NGCCRuntime
-
- relaxngcc.parser.ParserRuntime
-
- relaxngcc.parser.RootParserRuntime
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,NGCCEventSource
public class RootParserRuntime extends ParserRuntime
ParserRuntimethat parses grammars as the root definition.- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Field Summary
-
Fields inherited from class relaxngcc.parser.ParserRuntime
grammar
-
-
Constructor Summary
Constructors Constructor Description RootParserRuntime(Options _options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendGlobalBody(java.lang.String code)voidappendGlobalImport(java.lang.String code)longgetGrammarTimestamp()NGCCGrammargetResult()Gets the parsed result, or null if there was any error.RootParserRuntimegetRootRuntime()Gets the reference to the root runtime.voidstartElement(java.lang.String uri, java.lang.String local, java.lang.String qname, org.xml.sax.Attributes atts)-
Methods inherited from class relaxngcc.parser.ParserRuntime
addError, createLocator, endElement, getDatatype, getTargetNamespace, iterateErrors, parse, parseSimpleName, processInclude
-
Methods inherited from class relaxngcc.parser.state.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, traceln
-
-
-
-
Constructor Detail
-
RootParserRuntime
public RootParserRuntime(Options _options)
-
-
Method Detail
-
appendGlobalImport
public void appendGlobalImport(java.lang.String code)
-
appendGlobalBody
public void appendGlobalBody(java.lang.String code)
-
getGrammarTimestamp
public long getGrammarTimestamp()
-
getRootRuntime
public RootParserRuntime getRootRuntime()
Description copied from class:ParserRuntimeGets the reference to the root runtime.- Specified by:
getRootRuntimein classParserRuntime
-
getResult
public NGCCGrammar getResult()
Gets the parsed result, or null if there was any error.
-
startElement
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- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classParserRuntime- Throws:
org.xml.sax.SAXException
-
-