|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.Report.SuppressedViolation
public static class Report.SuppressedViolation
Represents a violation, that has been suppressed.
Constructor Summary | |
---|---|
Report.SuppressedViolation(RuleViolation rv,
boolean isNOPMD,
String userMessage)
Creates a suppressed violation. |
Method Summary | |
---|---|
RuleViolation |
getRuleViolation()
|
String |
getUserMessage()
|
boolean |
suppressedByAnnotation()
Returns true if the violation has been suppressed via a
annotation. |
boolean |
suppressedByNOPMD()
Returns true if the violation has been suppressed via a
NOPMD comment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Report.SuppressedViolation(RuleViolation rv, boolean isNOPMD, String userMessage)
rv
- the actual violation, that has been suppressedisNOPMD
- the suppression mode: true
if it is
suppressed via a NOPMD comment, false
if
suppressed via annotations.userMessage
- contains the suppressed code line or
null
Method Detail |
---|
public boolean suppressedByNOPMD()
true
if the violation has been suppressed via a
NOPMD comment.
true
if the violation has been suppressed via a
NOPMD comment.public boolean suppressedByAnnotation()
true
if the violation has been suppressed via a
annotation.
true
if the violation has been suppressed via a
annotation.public RuleViolation getRuleViolation()
public String getUserMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |