View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.python;
5   
6   import net.sourceforge.pmd.lang.BaseLanguageModule;
7   
8   /**
9    * Implementation of the Python Language Module.
10   */
11  public class PythonLanguageModule extends BaseLanguageModule {
12  
13      /** The name, that can be used to display the language in UI. */
14      public static final String NAME = "Python";
15      /** The internal name. */
16      public static final String TERSE_NAME = "python";
17  
18      /**
19       * Creates a new instance of {@link PythonLanguageModule} with the default file extensions for Python.
20       */
21      public PythonLanguageModule() {
22          super(NAME, null, TERSE_NAME, null, "py");
23          addVersion("", new PythonHandler(), true);
24      }
25  }