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   public class JavaLanguage extends AbstractLanguage {
9   	public JavaLanguage() {
10  		this(System.getProperties());
11  	}
12  
13  	public JavaLanguage(Properties properties) {
14  		super(new JavaTokenizer(), ".java");
15  		setProperties(properties);
16  	}
17  
18  	public final void setProperties(Properties properties) {
19          JavaTokenizer tokenizer = (JavaTokenizer)getTokenizer();
20          tokenizer.setProperties(properties);
21  	}
22  }