net.sourceforge.pmd.parsers
Class Java17Parser
java.lang.Object
extended by net.sourceforge.pmd.parsers.Java17Parser
- All Implemented Interfaces:
- Parser
public class Java17Parser
- extends java.lang.Object
- implements Parser
Adapter for the JavaParser, using Java 1.7 grammar.
Method Summary |
java.util.Map<java.lang.Integer,java.lang.String> |
getExcludeMap()
|
java.lang.Object |
parse(java.io.Reader source)
Parse source code and return the root node of the AST. |
void |
setExcludeMarker(java.lang.String marker)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Java17Parser
public Java17Parser()
parse
public java.lang.Object parse(java.io.Reader source)
throws ParseException
- Description copied from interface:
Parser
- Parse source code and return the root node of the AST.
- Specified by:
parse
in interface Parser
- Parameters:
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.
getExcludeMap
public java.util.Map<java.lang.Integer,java.lang.String> getExcludeMap()
- Specified by:
getExcludeMap
in interface Parser
-
setExcludeMarker
public void setExcludeMarker(java.lang.String marker)
- Specified by:
setExcludeMarker
in interface Parser
-
Copyright © 2002-2011 InfoEther. All Rights Reserved.