public static class Report.SuppressedViolation
extends java.lang.Object
| Constructor and Description |
|---|
Report.SuppressedViolation(RuleViolation rv,
boolean isNOPMD,
java.lang.String userMessage)
Creates a suppressed violation.
|
| Modifier and Type | Method and 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 Report.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
nullpublic 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-2014 InfoEther. All Rights Reserved.