Package net.sourceforge.pmd.lang
Class AbstractParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.AbstractParser
-
-
Field Summary
Fields Modifier and Type Field Description protected ParserOptionsparserOptions
-
Constructor Summary
Constructors Constructor Description AbstractParser(ParserOptions parserOptions)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TokenManagercreateTokenManager(java.io.Reader source)ParserOptionsgetParserOptions()Get the ParserOptions used by this Parser.TokenManagergetTokenManager(java.lang.String fileName, java.io.Reader source)Get a TokenManager for the given source.-
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
-
-
Constructor Detail
-
AbstractParser
public AbstractParser(ParserOptions parserOptions)
-
-
Method Detail
-
getParserOptions
public ParserOptions getParserOptions()
Description copied from interface:ParserGet the ParserOptions used by this Parser.- Specified by:
getParserOptionsin interfaceParser
-
getTokenManager
public TokenManager getTokenManager(java.lang.String fileName, java.io.Reader source)
Description copied from interface:ParserGet a TokenManager for the given source.- Specified by:
getTokenManagerin 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(java.io.Reader source)
-
-