Enum Class TreeResult.Violation.Severity
java.lang.Object
java.lang.Enum<TreeResult.Violation.Severity>
cloud.opencode.base.tree.result.TreeResult.Violation.Severity
- All Implemented Interfaces:
Serializable, Comparable<TreeResult.Violation.Severity>, Constable
- Enclosing class:
TreeResult.Violation
Violation Severity
违规严重程度
Defines the severity level of a violation.
定义违规的严重程度级别。
- Since:
- JDK 25, opencode-base-tree V1.0.0
- Author:
- Leon Soo
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TreeResult.Violation.Severity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
Error severity - operation should fail 错误严重程度 - 操作应该失败 -
WARNING
Warning severity - operation may continue 警告严重程度 - 操作可以继续 -
INFO
Info severity - informational only 信息严重程度 - 仅供参考
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-