public static class Report.SuppressedViolation
extends java.lang.Object
Constructor | Description |
---|---|
SuppressedViolation(RuleViolation rv,
boolean isNOPMD,
java.lang.String userMessage) |
Creates a suppressed violation.
|
Modifier and Type | Method | Description |
---|---|---|
RuleViolation |
getRuleViolation() |
|
java.lang.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 SuppressedViolation(RuleViolation rv, boolean isNOPMD, java.lang.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 java.lang.String getUserMessage()
Copyright © 2002–2018 PMD. All rights reserved.