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:
Parser
@InternalApi @Deprecated public class JavaLanguageParser extends AbstractJavaParser
Deprecated.This is internal API, useLanguageVersionHandler.getParser(ParserOptions)
.Adapter for the JavaParser, using the specified grammar version.- Author:
- Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be, Andreas Dangel
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.AbstractParser
parserOptions
-
-
Constructor Summary
Constructors Constructor Description JavaLanguageParser(int jdkVersion, boolean preview, ParserOptions parserOptions)
Deprecated.JavaLanguageParser(int jdkVersion, ParserOptions parserOptions)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected JavaParser
createJavaParser(Reader source)
Deprecated.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
-
Methods inherited from class net.sourceforge.pmd.lang.AbstractParser
doParse, getParserOptions, getTokenManager
-
-
-
-
Constructor Detail
-
JavaLanguageParser
public JavaLanguageParser(int jdkVersion, ParserOptions parserOptions)
Deprecated.
-
JavaLanguageParser
public JavaLanguageParser(int jdkVersion, boolean preview, ParserOptions parserOptions)
Deprecated.
-
-
Method Detail
-
createJavaParser
protected JavaParser createJavaParser(Reader source) throws ParseException
Deprecated.Description copied from class:AbstractJavaParser
Subclass should override this method to modify the JavaParser as needed.- Overrides:
createJavaParser
in classAbstractJavaParser
- Throws:
ParseException
-
-