Package net.sourceforge.pmd.lang.java
Class JavaLanguageParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.AbstractParser
-
- net.sourceforge.pmd.lang.java.AbstractJavaParser
-
- net.sourceforge.pmd.lang.java.JavaLanguageParser
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.Parser
public class JavaLanguageParser extends AbstractJavaParser
Adapter for the JavaParser, using the specified grammar version.- Author:
- Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be, Andreas Dangel
-
-
Constructor Summary
Constructors Constructor Description JavaLanguageParser(int jdkVersion, boolean preview, net.sourceforge.pmd.lang.ParserOptions parserOptions)
JavaLanguageParser(int jdkVersion, net.sourceforge.pmd.lang.ParserOptions parserOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JavaParser
createJavaParser(java.io.Reader source)
Subclass should override this method to modify the JavaParser as needed.-
Methods inherited from class net.sourceforge.pmd.lang.java.AbstractJavaParser
canParse, createTokenManager, getSuppressMap, parse
-
-
-
-
Method Detail
-
createJavaParser
protected JavaParser createJavaParser(java.io.Reader source) throws ParseException
Description copied from class:AbstractJavaParser
Subclass should override this method to modify the JavaParser as needed.- Overrides:
createJavaParser
in classAbstractJavaParser
- Throws:
ParseException
-
-