net.sourceforge.pmd
Class RuleViolation
java.lang.Object
net.sourceforge.pmd.RuleViolation
- All Implemented Interfaces:
- IRuleViolation
- Direct Known Subclasses:
- DaaRuleViolation
public class RuleViolation
- extends java.lang.Object
- implements IRuleViolation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RuleViolation
public RuleViolation(Rule rule,
RuleContext ctx,
SimpleNode node)
RuleViolation
public RuleViolation(Rule rule,
RuleContext ctx,
SimpleNode node,
java.lang.String specificMsg)
getRule
public Rule getRule()
- Specified by:
getRule
in interface IRuleViolation
isSuppressed
public boolean isSuppressed()
- Specified by:
isSuppressed
in interface IRuleViolation
getBeginColumn
public int getBeginColumn()
- Specified by:
getBeginColumn
in interface IRuleViolation
getEndColumn
public int getEndColumn()
- Specified by:
getEndColumn
in interface IRuleViolation
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface IRuleViolation
getFilename
public java.lang.String getFilename()
- Specified by:
getFilename
in interface IRuleViolation
getClassName
public java.lang.String getClassName()
- Specified by:
getClassName
in interface IRuleViolation
getMethodName
public java.lang.String getMethodName()
- Specified by:
getMethodName
in interface IRuleViolation
getPackageName
public java.lang.String getPackageName()
- Specified by:
getPackageName
in interface IRuleViolation
getBeginLine
public int getBeginLine()
- Specified by:
getBeginLine
in interface IRuleViolation
getEndLine
public int getEndLine()
- Specified by:
getEndLine
in interface IRuleViolation
getVariableName
public java.lang.String getVariableName()
- Specified by:
getVariableName
in interface IRuleViolation
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object