Serializable, Comparable<HiChecker.Rule>public static enum HiChecker.Rule extends Enum<HiChecker.Rule>
There are three rule types, as described below. The impact of applying these rules varies with the rule type.
| 枚举常量 | 说明 |
|---|---|
CAUTION_BY_CRASH |
Cautions will cause the running process to crash and produce a stack trace.
|
CAUTION_BY_LOG |
Cautions are logged.
|
CHECK_FILE_READ |
File read operations are detected.
|
CHECK_FILE_WRITE |
File write operations are detected.
|
CHECK_NETWORK_ACCESS |
Network access operations are detected.
|
CHECK_SLOW_PROCESS |
Time-consuming operations (slow processing) are detected.
|
CHECK_VM_RELEASE_MISS |
Resources that are not released in a timely manner are detected.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static HiChecker.Rule |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static HiChecker.Rule[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (HiChecker.Rule c : HiChecker.Rule.values()) System.out.println(c); |
public static final HiChecker.Rule CAUTION_BY_LOG
public static final HiChecker.Rule CAUTION_BY_CRASH
public static final HiChecker.Rule CHECK_FILE_READ
public static final HiChecker.Rule CHECK_FILE_WRITE
public static final HiChecker.Rule CHECK_NETWORK_ACCESS
public static final HiChecker.Rule CHECK_SLOW_PROCESS
public static final HiChecker.Rule CHECK_VM_RELEASE_MISS
public static HiChecker.Rule[] values()
for (HiChecker.Rule c : HiChecker.Rule.values()) System.out.println(c);
public static HiChecker.Rule valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值