Package net.sourceforge.pmd.lang
Class AbstractParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.AbstractParser
-
-
Field Summary
Fields Modifier and Type Field Description protected ParserOptions
parserOptions
Deprecated.
-
Constructor Summary
Constructors Constructor Description AbstractParser(ParserOptions parserOptions)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract TokenManager
createTokenManager(Reader source)
Deprecated.static Node
doParse(Parser parser, String fileName, Reader source)
Deprecated.ParserOptions
getParserOptions()
Deprecated.Get the ParserOptions used by this Parser.TokenManager
getTokenManager(String fileName, Reader source)
Deprecated.Get a TokenManager for the given source.static void
setFileName(String fileName, Node rootNode)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.Parser
canParse, getSuppressMap, parse
-
-
-
-
Field Detail
-
parserOptions
protected final ParserOptions parserOptions
Deprecated.
-
-
Constructor Detail
-
AbstractParser
public AbstractParser(ParserOptions parserOptions)
Deprecated.
-
-
Method Detail
-
getParserOptions
public ParserOptions getParserOptions()
Deprecated.Description copied from interface:Parser
Get the ParserOptions used by this Parser.- Specified by:
getParserOptions
in interfaceParser
-
getTokenManager
public TokenManager getTokenManager(String fileName, Reader source)
Deprecated.Description copied from interface:Parser
Get a TokenManager for the given source.- Specified by:
getTokenManager
in interfaceParser
- Parameters:
fileName
- The file name being parsed (may benull
).source
- Reader that provides the source code to tokenize.- Returns:
- A TokenManager for reading token.
-
createTokenManager
protected abstract TokenManager createTokenManager(Reader source)
Deprecated.
-
doParse
@Deprecated public static Node doParse(Parser parser, String fileName, Reader source)
Deprecated.
-
setFileName
@InternalApi public static void setFileName(String fileName, Node rootNode)
Deprecated.
-
-