Constructor and Description |
---|
Report.SuppressedViolation(RuleViolation rv,
boolean isNOPMD,
String userMessage)
Creates a suppressed violation.
|
Modifier and Type | Method and Description |
---|---|
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. |
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
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()
Copyright © 2002-2017 PMD. All Rights Reserved.