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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlParser
public XmlParser(ParserOptions parserOptions)
createTokenManager
public TokenManager createTokenManager(Reader source)
- Specified by:
createTokenManager
in class AbstractParser
canParse
public boolean canParse()
- Description copied from interface:
Parser
- Indicates if this parser can actual parse, or if it can only tokenize.
parse
public Node parse(String fileName,
Reader source)
throws ParseException
- Description copied from interface:
Parser
- Parse source code and return the root node of the AST.
- Parameters:
fileName
- The file name being parsed (may be null
).source
- Reader that provides the source code of a compilation unit
- Returns:
- the root node of the AST that is built from the source code
- Throws:
ParseException
- In case the source code could not be parsed, probably
due to syntactical errors.
getSuppressMap
public Map<Integer,String> getSuppressMap()
Copyright © 2002–2015 InfoEther. All rights reserved.