Modifier and Type | Field and Description |
---|---|
protected ParserOptions |
parserOptions |
Constructor and Description |
---|
AbstractParser(ParserOptions parserOptions) |
Modifier and Type | Method and Description |
---|---|
protected abstract TokenManager |
createTokenManager(java.io.Reader source) |
ParserOptions |
getParserOptions()
Get the ParserOptions used by this Parser.
|
TokenManager |
getTokenManager(java.lang.String fileName,
java.io.Reader source)
Get a TokenManager for the given source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canParse, getSuppressMap, parse
protected final ParserOptions parserOptions
public AbstractParser(ParserOptions parserOptions)
public ParserOptions getParserOptions()
Parser
getParserOptions
in interface Parser
public TokenManager getTokenManager(java.lang.String fileName, java.io.Reader source)
Parser
getTokenManager
in interface Parser
fileName
- The file name being parsed (may be null
).source
- Reader that provides the source code to tokenize.protected abstract TokenManager createTokenManager(java.io.Reader source)
Copyright © 2002–2018 PMD. All rights reserved.