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:
Parser
- Direct Known Subclasses:
JavaLanguageParser
@Deprecated public abstract class AbstractJavaParser extends 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
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.AbstractParser
parserOptions
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaParser(ParserOptions parserOptions)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canParse()
Deprecated.protected JavaParser
createJavaParser(Reader source)
Deprecated.Subclass should override this method to modify the JavaParser as needed.TokenManager
createTokenManager(Reader source)
Deprecated.Map<Integer,String>
getSuppressMap()
Deprecated.Node
parse(String fileName, Reader source)
Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.AbstractParser
doParse, getParserOptions, getTokenManager, setFileName
-
-
-
-
Constructor Detail
-
AbstractJavaParser
public AbstractJavaParser(ParserOptions parserOptions)
Deprecated.
-
-
Method Detail
-
createTokenManager
public TokenManager createTokenManager(Reader source)
Deprecated.- Specified by:
createTokenManager
in classAbstractParser
-
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 Node parse(String fileName, Reader source) throws ParseException
Deprecated.- Throws:
ParseException
-
-