public final class RuleUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
RuleUtil.ExtensionMatcher
An extension does not start with Checkstyle package.
|
static interface |
RuleUtil.Matcher
Audit event source name matcher.
|
private static class |
RuleUtil.PackageMatcher |
private static class |
RuleUtil.RuleMatcher |
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
CHECKSTYLE_PACKAGE |
| Modifier | Constructor and Description |
|---|---|
private |
RuleUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCategory(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
Get the rule category from an audit event.
|
static java.lang.String |
getCategory(java.lang.String eventSrcName)
Get the rule category from an audit event source name.
|
static java.lang.String |
getName(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
Get the rule name from an audit event.
|
static java.lang.String |
getName(java.lang.String eventSrcName)
Get the rule name from an audit event source name.
|
static RuleUtil.Matcher[] |
parseMatchers(java.lang.String[] specs) |
private static final java.lang.String CHECKSTYLE_PACKAGE
public static java.lang.String getName(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
event - the audit eventpublic static java.lang.String getName(java.lang.String eventSrcName)
eventSrcName - the audit event source namepublic static java.lang.String getCategory(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
event - the audit eventpublic static java.lang.String getCategory(java.lang.String eventSrcName)
eventSrcName - the audit event source namepublic static RuleUtil.Matcher[] parseMatchers(java.lang.String[] specs)