Enum Class ParserException.ErrorType
java.lang.Object
java.lang.Enum<ParserException.ErrorType>
cloud.opencode.base.expression.parser.ParserException.ErrorType
- All Implemented Interfaces:
Serializable, Comparable<ParserException.ErrorType>, Constable
- Enclosing class:
ParserException
Error Type Enum
错误类型枚举
- Since:
- JDK 25, opencode-base-expression V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExpected token not found 未找到期望的词法单元General parse error 一般解析错误Invalid escape sequence 无效转义序列Invalid identifier 无效标识符Invalid number format 无效数字格式Unbalanced parentheses 不平衡括号Unexpected end of expression 表达式意外结束Unexpected token 意外词法单元Unknown operator 未知运算符Unterminated string 未终止字符串 -
Method Summary
Modifier and TypeMethodDescriptionstatic ParserException.ErrorTypeReturns the enum constant of this class with the specified name.static ParserException.ErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERAL
General parse error 一般解析错误 -
UNEXPECTED_TOKEN
Unexpected token 意外词法单元 -
EXPECTED_TOKEN
Expected token not found 未找到期望的词法单元 -
UNEXPECTED_END
Unexpected end of expression 表达式意外结束 -
INVALID_NUMBER
Invalid number format 无效数字格式 -
UNTERMINATED_STRING
Unterminated string 未终止字符串 -
INVALID_ESCAPE
Invalid escape sequence 无效转义序列 -
UNBALANCED_PARENS
Unbalanced parentheses 不平衡括号 -
INVALID_IDENTIFIER
Invalid identifier 无效标识符 -
UNKNOWN_OPERATOR
Unknown operator 未知运算符
-
-
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
-