Package net.sourceforge.pmd.lang.xml.ast
Class XmlParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.xml.ast.XmlParser
-
public class XmlParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XmlParser.RootXmlNode
The root should implementRootNode
.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<org.w3c.dom.Node,XmlNode>
nodeCache
protected XmlParserOptions
parserOptions
-
Constructor Summary
Constructors Constructor Description XmlParser(XmlParserOptions parserOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlNode
parse(java.io.Reader reader)
protected org.w3c.dom.Document
parseDocument(java.io.Reader reader)
-
-
-
Field Detail
-
parserOptions
protected final XmlParserOptions parserOptions
-
nodeCache
protected java.util.Map<org.w3c.dom.Node,XmlNode> nodeCache
-
-
Constructor Detail
-
XmlParser
public XmlParser(XmlParserOptions parserOptions)
-
-
Method Detail
-
parseDocument
protected org.w3c.dom.Document parseDocument(java.io.Reader reader) throws net.sourceforge.pmd.lang.ast.ParseException
- Throws:
net.sourceforge.pmd.lang.ast.ParseException
-
parse
public XmlNode parse(java.io.Reader reader)
-
-