Class ExpressionParser
java.lang.Object
com.realtime.crossfire.jxclient.skin.io.ExpressionParser
Parser for integer expressions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ExpressionparseExpression(@NotNull String str) Parses an integer constant.static intParses an integer constant.
-
Method Details
-
parseInt
Parses an integer constant. Valid constants are "3", "3+4", and "1+2-3+4".- Parameters:
str- the integer constant string to parse- Returns:
- the integer value
- Throws:
IOException- if a parsing error occurs
-
parseExpression
@NotNull public static @NotNull Expression parseExpression(@NotNull @NotNull String str) throws IOException Parses an integer constant. Valid constants are "3", "3+4", and "1+2-3+4".- Parameters:
str- the integer constant string to parse- Returns:
- the integer expression
- Throws:
IOException- if a parsing error occurs
-