Package net.sourceforge.pmd.lang.java
Class AbstractJavaParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.AbstractParser
-
- net.sourceforge.pmd.lang.java.AbstractJavaParser
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.Parser
- Direct Known Subclasses:
JavaLanguageParser
@Deprecated public abstract class AbstractJavaParser extends net.sourceforge.pmd.lang.AbstractParser
Deprecated.For removal, the abstraction is not useful.This is a generic Java specific implementation of the Parser interface. It creates a JavaParser instance, and sets the exclude marker. It also exposes the exclude map from the JavaParser instance.- See Also:
AbstractParser,JavaParser
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaParser(net.sourceforge.pmd.lang.ParserOptions parserOptions)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanParse()Deprecated.protected JavaParsercreateJavaParser(Reader source)Deprecated.Subclass should override this method to modify the JavaParser as needed.net.sourceforge.pmd.lang.TokenManagercreateTokenManager(Reader source)Deprecated.Map<Integer,String>getSuppressMap()Deprecated.net.sourceforge.pmd.lang.ast.Nodeparse(String fileName, Reader source)Deprecated.
-
-
-
Method Detail
-
createTokenManager
public net.sourceforge.pmd.lang.TokenManager createTokenManager(Reader source)
Deprecated.- Specified by:
createTokenManagerin classnet.sourceforge.pmd.lang.AbstractParser
-
createJavaParser
protected JavaParser createJavaParser(Reader source) throws ParseException
Deprecated.Subclass should override this method to modify the JavaParser as needed.- Throws:
ParseException
-
canParse
public boolean canParse()
Deprecated.
-
parse
public net.sourceforge.pmd.lang.ast.Node parse(String fileName, Reader source) throws ParseException
Deprecated.- Throws:
ParseException
-
-