01 /**
02 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
03 */
04 package net.sourceforge.pmd.lang.xml;
05
06 import java.io.Reader;
07 import java.util.HashMap;
08 import java.util.Map;
09
10 import net.sourceforge.pmd.lang.AbstractParser;
11 import net.sourceforge.pmd.lang.TokenManager;
12 import net.sourceforge.pmd.lang.ast.Node;
13 import net.sourceforge.pmd.lang.ast.ParseException;
14
15 /**
16 * Adapter for the XmlParser.
17 */
18 public class XmlParser extends AbstractParser {
19
20 public TokenManager createTokenManager(Reader source) {
21 return null;
22 }
23
24 public boolean canParse() {
25 return true;
26 }
27
28 public Node parse(String fileName, Reader source) throws ParseException {
29 return new net.sourceforge.pmd.lang.xml.ast.XmlParser().parse(source);
30 }
31
32 public Map<Integer, String> getSuppressMap() {
33 return new HashMap<Integer, String>(); // FIXME
34 }
35 }
|