Package net.sourceforge.pmd.lang.xml
Class XmlParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.AbstractParser
-
- net.sourceforge.pmd.lang.xml.XmlParser
-
- All Implemented Interfaces:
Parser
public class XmlParser extends AbstractParser
Adapter for the XmlParser.
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.AbstractParser
parserOptions
-
-
Constructor Summary
Constructors Constructor Description XmlParser(ParserOptions parserOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanParse()TokenManagercreateTokenManager(Reader source)Map<Integer,String>getSuppressMap()Nodeparse(String fileName, Reader source)-
Methods inherited from class net.sourceforge.pmd.lang.AbstractParser
doParse, getParserOptions, getTokenManager
-
-
-
-
Constructor Detail
-
XmlParser
public XmlParser(ParserOptions parserOptions)
-
-
Method Detail
-
createTokenManager
public TokenManager createTokenManager(Reader source)
- Specified by:
createTokenManagerin classAbstractParser
-
canParse
public boolean canParse()
-
parse
public Node parse(String fileName, Reader source) throws ParseException
- Throws:
ParseException
-
-