View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang.matlab;
5   
6   import net.sourceforge.pmd.lang.AbstractLanguageVersionHandler;
7   import net.sourceforge.pmd.lang.Parser;
8   import net.sourceforge.pmd.lang.ParserOptions;
9   import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
10  
11  /**
12   * Implementation of LanguageVersionHandler for the Matlab Language.
13   */
14  public class MatlabHandler extends AbstractLanguageVersionHandler {
15  
16      @Override
17      public RuleViolationFactory getRuleViolationFactory() {
18          throw new UnsupportedOperationException("getRuleViolationFactory() is not supported for Matlab");
19      }
20  
21      @Override
22      public Parser getParser(ParserOptions parserOptions) {
23          return new MatlabParser(parserOptions);
24      }
25  }