public final class RuleUtil extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RuleUtil.Matcher
Audit event source name matcher.
|
Modifier and Type | Method and Description |
---|---|
static String |
getCategory(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
Get the rule category from an audit event.
|
static String |
getCategory(String eventSrcName)
Get the rule category from an audit event source name.
|
static String |
getName(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
Get the rule name from an audit event.
|
static String |
getName(String eventSrcName)
Get the rule name from an audit event source name.
|
static List<RuleUtil.Matcher> |
parseMatchers(String[] specs) |
public static String getName(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
event
- the audit eventpublic static String getName(String eventSrcName)
eventSrcName
- the audit event source namepublic static String getCategory(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
event
- the audit eventpublic static String getCategory(String eventSrcName)
eventSrcName
- the audit event source namepublic static List<RuleUtil.Matcher> parseMatchers(String[] specs)
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.