View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.java;
5   
6   import net.sourceforge.pmd.lang.BaseLanguageModule;
7   import net.sourceforge.pmd.lang.java.rule.JavaRuleChainVisitor;
8   
9   /**
10   * Created by christoferdutz on 20.09.14.
11   */
12  public class JavaLanguageModule extends BaseLanguageModule {
13  
14      public static final String NAME = "Java";
15      public static final String TERSE_NAME = "java";
16  
17      public JavaLanguageModule() {
18          super(NAME, null, TERSE_NAME, JavaRuleChainVisitor.class, "java");
19          addVersion("1.3", new Java13Handler(), false);
20          addVersion("1.4", new Java14Handler(), false);
21          addVersion("1.5", new Java15Handler(), false);
22          addVersion("1.6", new Java16Handler(), false);
23          addVersion("1.7", new Java17Handler(), false);
24          addVersion("1.8", new Java18Handler(), true);
25      }
26  
27  }