Class DaaRuleViolation

  • All Implemented Interfaces:
    net.sourceforge.pmd.RuleViolation

    public class DaaRuleViolation
    extends JavaRuleViolation
    The RuleViolation is extended by the VariableName. The VariableName is required for showing what variable produces the UR DD or DU anomaly.
    Author:
    Sven Jacob, Brian Remedios
    • Field Summary

      • Fields inherited from class net.sourceforge.pmd.lang.rule.ParametricRuleViolation

        beginColumn, beginLine, className, description, endColumn, endLine, filename, methodName, packageName, rule, suppressed
    • Constructor Summary

      Constructors 
      Constructor Description
      DaaRuleViolation​(net.sourceforge.pmd.Rule rule, net.sourceforge.pmd.RuleContext ctx, net.sourceforge.pmd.lang.ast.Node node, java.lang.String type, java.lang.String msg, java.lang.String var, int beginLine, int endLine)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getType()  
      java.lang.String getVariableName()  
      • Methods inherited from class net.sourceforge.pmd.lang.rule.ParametricRuleViolation

        expandVariables, getBeginColumn, getBeginLine, getClassName, getDescription, getEndColumn, getEndLine, getFilename, getMethodName, getPackageName, getRule, getVariableValue, isSuppressed, isVariable, setLines, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DaaRuleViolation

        public DaaRuleViolation​(net.sourceforge.pmd.Rule rule,
                                net.sourceforge.pmd.RuleContext ctx,
                                net.sourceforge.pmd.lang.ast.Node node,
                                java.lang.String type,
                                java.lang.String msg,
                                java.lang.String var,
                                int beginLine,
                                int endLine)
    • Method Detail

      • getVariableName

        public java.lang.String getVariableName()
        Specified by:
        getVariableName in interface net.sourceforge.pmd.RuleViolation
        Overrides:
        getVariableName in class net.sourceforge.pmd.lang.rule.ParametricRuleViolation<JavaNode>
      • getType

        public java.lang.String getType()