public class JacocoViolationRuleImpl extends java.lang.Object implements JacocoViolationRule
| Constructor and Description |
|---|
JacocoViolationRuleImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getElement()
Gets the element for the rule as defined by
org.jacoco.core.analysis.ICoverageNode.ElementType.
|
java.util.List<java.lang.String> |
getExcludes()
List of elements that should be excluded from check.
|
java.util.List<java.lang.String> |
getIncludes()
List of elements that should be included in check.
|
java.util.List<JacocoLimit> |
getLimits()
Gets all limits defined for this rule.
|
int |
hashCode() |
boolean |
isEnabled()
Indicates if the rule should be used when checking generated coverage metrics.
|
JacocoLimit |
limit(org.gradle.api.Action<? super JacocoLimit> configureAction)
Adds a limit for this rule.
|
void |
setElement(java.lang.String element)
Sets element for the rule.
|
void |
setEnabled(boolean enabled) |
void |
setExcludes(java.util.List<java.lang.String> excludes)
Sets list of elements that should be excluded from check.
|
void |
setIncludes(java.util.List<java.lang.String> includes)
Sets list of elements that should be included in check.
|
public boolean isEnabled()
JacocoViolationRuleisEnabled in interface JacocoViolationRulepublic void setEnabled(boolean enabled)
setEnabled in interface JacocoViolationRulepublic void setElement(java.lang.String element)
JacocoViolationRulesetElement in interface JacocoViolationRuleelement - Elementpublic java.lang.String getElement()
JacocoViolationRulegetElement in interface JacocoViolationRulepublic void setIncludes(java.util.List<java.lang.String> includes)
JacocoViolationRulesetIncludes in interface JacocoViolationRuleincludes - Inclusionspublic java.util.List<java.lang.String> getIncludes()
JacocoViolationRulegetIncludes in interface JacocoViolationRulepublic void setExcludes(java.util.List<java.lang.String> excludes)
JacocoViolationRulesetExcludes in interface JacocoViolationRuleexcludes - Exclusionspublic java.util.List<java.lang.String> getExcludes()
JacocoViolationRulegetExcludes in interface JacocoViolationRulepublic java.util.List<JacocoLimit> getLimits()
JacocoViolationRulegetLimits in interface JacocoViolationRulepublic JacocoLimit limit(org.gradle.api.Action<? super JacocoLimit> configureAction)
JacocoViolationRulelimit in interface JacocoViolationRulepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object