Class PythonParser

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.Parser

    @Deprecated
    public class PythonParser
    extends net.sourceforge.pmd.lang.AbstractParser
    Deprecated.
    There is no full PMD support for Python.
    Adapter for the Python Parser.
    • Field Summary

      • Fields inherited from class net.sourceforge.pmd.lang.AbstractParser

        parserOptions
    • Constructor Summary

      Constructors 
      Constructor Description
      PythonParser​(net.sourceforge.pmd.lang.ParserOptions parserOptions)
      Deprecated.
      Creates a new Python Parser.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean canParse()
      Deprecated.
       
      net.sourceforge.pmd.lang.TokenManager createTokenManager​(java.io.Reader source)
      Deprecated.
       
      java.util.Map<java.lang.Integer,​java.lang.String> getSuppressMap()
      Deprecated.
       
      net.sourceforge.pmd.lang.ast.Node parse​(java.lang.String fileName, java.io.Reader source)
      Deprecated.
       
      • Methods inherited from class net.sourceforge.pmd.lang.AbstractParser

        getParserOptions, getTokenManager
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PythonParser

        public PythonParser​(net.sourceforge.pmd.lang.ParserOptions parserOptions)
        Deprecated.
        Creates a new Python Parser.
        Parameters:
        parserOptions - the options
    • Method Detail

      • createTokenManager

        public net.sourceforge.pmd.lang.TokenManager createTokenManager​(java.io.Reader source)
        Deprecated.
        Specified by:
        createTokenManager in class net.sourceforge.pmd.lang.AbstractParser
      • canParse

        public boolean canParse()
        Deprecated.
      • parse

        public net.sourceforge.pmd.lang.ast.Node parse​(java.lang.String fileName,
                                                       java.io.Reader source)
                                                throws net.sourceforge.pmd.lang.ast.ParseException
        Deprecated.
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException
      • getSuppressMap

        public java.util.Map<java.lang.Integer,​java.lang.String> getSuppressMap()
        Deprecated.