View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.cpd;
5   
6   import java.util.Properties;
7   
8   /**
9    * Language implementation for C#
10   */
11  public class CsLanguage extends AbstractLanguage {
12  
13      public CsLanguage() {
14          this(System.getProperties());
15      }
16  
17      public CsLanguage(Properties properties) {
18          super("C#", "cs", new CsTokenizer(), ".cs");
19          setProperties(properties);
20      }
21  
22      public final void setProperties(Properties properties) {
23          CsTokenizer tokenizer = (CsTokenizer)getTokenizer();
24          tokenizer.setProperties(properties);
25      }
26  }