View Javadoc

1   package net.sourceforge.pmd.lang.cpp;
2   
3   import net.sourceforge.pmd.lang.AbstractLanguageVersionHandler;
4   import net.sourceforge.pmd.lang.Parser;
5   import net.sourceforge.pmd.lang.ParserOptions;
6   import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
7   
8   /**
9    * Implementation of LanguageVersionHandler for the C++ Language.
10   */
11  public class CppHandler extends AbstractLanguageVersionHandler {
12  
13      public RuleViolationFactory getRuleViolationFactory() {
14  	throw new UnsupportedOperationException("getRuleViolationFactory() is not supported for C++");
15      }
16  
17      public Parser getParser(ParserOptions parserOptions) {
18  	return new CppParser(parserOptions);
19      }
20  }