Class AbstractParser

  • All Implemented Interfaces:
    Parser

    @Deprecated
    public abstract class AbstractParser
    extends Object
    implements Parser
    Deprecated.
    This will become useless in PMD 7. Implement or use Parser directly
    This is a generic implementation of the Parser interface.
    See Also:
    Parser
    • 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 interface Parser
      • 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 interface Parser
        Parameters:
        fileName - The file name being parsed (may be null).
        source - Reader that provides the source code to tokenize.
        Returns:
        A TokenManager for reading token.
      • createTokenManager

        protected abstract TokenManager createTokenManager​(Reader source)
        Deprecated.