Class YamlRuleInterpreterPlugin

java.lang.Object
com.buschmais.jqassistant.plugin.common.impl.rule.YamlRuleInterpreterPlugin
All Implemented Interfaces:
com.buschmais.jqassistant.core.analysis.api.RuleInterpreterPlugin, com.buschmais.jqassistant.core.shared.lifecycle.ConfigurableLifecycleAware<Map<String,Object>>, com.buschmais.jqassistant.core.shared.lifecycle.LifecycleAware

public class YamlRuleInterpreterPlugin extends Object implements com.buschmais.jqassistant.core.analysis.api.RuleInterpreterPlugin
A RuleInterpreterPlugin the takes a YAML file containing a class as argument.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends com.buschmais.jqassistant.core.rule.api.model.ExecutableRule<?>>
    boolean
    accepts(T executableRule)
     
    <T extends com.buschmais.jqassistant.core.rule.api.model.ExecutableRule<?>>
    Result<T>
    execute(T executableRule, Map<String,Object> ruleParameters, com.buschmais.jqassistant.core.rule.api.model.Severity severity, com.buschmais.jqassistant.core.analysis.api.AnalyzerContext context)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.buschmais.jqassistant.core.analysis.api.RuleInterpreterPlugin

    configure, destroy, initialize
  • Constructor Details

    • YamlRuleInterpreterPlugin

      public YamlRuleInterpreterPlugin()
  • Method Details

    • getLanguages

      public Collection<String> getLanguages()
      Specified by:
      getLanguages in interface com.buschmais.jqassistant.core.analysis.api.RuleInterpreterPlugin
    • accepts

      public <T extends com.buschmais.jqassistant.core.rule.api.model.ExecutableRule<?>> boolean accepts(T executableRule)
      Specified by:
      accepts in interface com.buschmais.jqassistant.core.analysis.api.RuleInterpreterPlugin
    • execute

      public <T extends com.buschmais.jqassistant.core.rule.api.model.ExecutableRule<?>> Result<T> execute(T executableRule, Map<String,Object> ruleParameters, com.buschmais.jqassistant.core.rule.api.model.Severity severity, com.buschmais.jqassistant.core.analysis.api.AnalyzerContext context) throws com.buschmais.jqassistant.core.rule.api.model.RuleException
      Specified by:
      execute in interface com.buschmais.jqassistant.core.analysis.api.RuleInterpreterPlugin
      Throws:
      com.buschmais.jqassistant.core.rule.api.model.RuleException