home *** CD-ROM | disk | FTP | other *** search
- public class JScriptExprParserException extends JScriptParserException {
- public static final int JSE_EXPR_OFFSET = 1000;
- public static final int JSE_KEYWORD_IN_EXPRESSION = 1000;
- public static final int JSE_CONST_NOT_ALLOWED_HERE = 1001;
- public static final int JSE_TERM_NOT_ALLOWED_HERE = 1002;
- public static final int JSE_OPERATOR_NOT_ALLOWED_HERE = 1003;
- public static final int JSE_DEBUG_TOKEN_NOT_ALLOWED_HERE = 1004;
- public static final int JSE_SPECIAL_CHAR_NOT_ALLOWED_HERE = 1005;
- public static final int JSE_PAREN_CLOSE_NOT_ALLOWED_HERE = 1006;
- public static final int JSE_ERROR_CREATING_EXPR_TREE = 1007;
- public static final int JSE_EXPR_ENDED_WITH_OPERATOR = 1008;
- public static final int JSE_TERMCONST_NOT_ALLOWED_HERE = 1009;
- public static final int JSE_PARENTHESES_NOT_ALLOWED_HERE = 1010;
- public static final int JSE_COND_SEL_NOT_ALLOWED_HERE = 1011;
- public static final int JSE_INTERNAL_DEBUG = 1012;
- public static final int JSE_OPERATOR_STARTS_EXPRESSION = 1013;
- public static final int JSE_BAD_OPERATOR = 1014;
- public static final int JSE_EMPTY_CONST = 1015;
- public static final int JSE_LEFT_OPERAND_MISSING = 1016;
- public static final int JSE_RIGHT_OPERAND_MISSING = 1017;
- public static final int JSE_OPTIONAL_OPERAND_MISSING = 1018;
- public static final int JSE_NO_L_VALUE = 1019;
- public static final int JSE_UNEXPECTED_OPERAND = 1020;
- public static final int JSE_BAD_TERM = 1021;
- public static final int JSE_OPERATOR_EXPECTED = 1022;
- public static final String JSE_KEYWORD_IN_EXPRESSION_MSG = "keyword in expression";
- public static final String JSE_CONST_NOT_ALLOWED_HERE_MSG = "const. not allowed here";
- public static final String JSE_TERM_NOT_ALLOWED_HERE_MSG = "term not allowed here";
- public static final String JSE_OPERATOR_NOT_ALLOWED_HERE_MSG = "operator not allowed here";
- public static final String JSE_DEBUG_TOKEN_NOT_ALLOWED_HERE_MSG = "debug-token not allowed here";
- public static final String JSE_SPECIAL_CHAR_NOT_ALLOWED_HERE_MSG = "special char not allowed here";
- public static final String JSE_PAREN_CLOSE_NOT_ALLOWED_HERE_MSG = "close parenthes not allowed here";
- public static final String JSE_ERROR_CREATING_EXPR_TREE_MSG = "error creating expression tree";
- public static final String JSE_EXPR_ENDED_WITH_OPERATOR_MSG = "expression ended with an operator";
- public static final String JSE_TERMCONST_NOT_ALLOWED_HERE_MSG = "term or const. not allowed here";
- public static final String JSE_PARENTHESES_NOT_ALLOWED_HERE_MSG = "parentheses not allowed here";
- public static final String JSE_COND_SEL_NOT_ALLOWED_HERE_MSG = "conditional selector not allowed here";
- public static final String JSE_INTERNAL_DEBUG_MSG = "internal expression-parser debug statement";
- public static final String JSE_OPERATOR_STARTS_EXPRESSION_MSG = "operator can't start expression";
- public static final String JSE_BAD_OPERATOR_MSG = "bad operator found";
- public static final String JSE_EMPTY_CONST_MSG = "empty const not allowed here";
- public static final String JSE_LEFT_OPERAND_MISSING_MSG = "left operand missing";
- public static final String JSE_RIGHT_OPERAND_MISSING_MSG = "right operand missing";
- public static final String JSE_OPTIONAL_OPERAND_MISSING_MSG = "optional operand missing";
- public static final String JSE_NO_L_VALUE_MSG = "no valid l-value";
- public static final String JSE_UNEXPECTED_OPERAND_MSG = "unexpected operand";
- public static final String JSE_BAD_TERM_MSG = "bad term found";
- public static final String JSE_OPERATOR_EXPECTED_MSG = "operator expected";
- private static final String[] aExprErrMsgArray = new String[]{"keyword in expression", "const. not allowed here", "term not allowed here", "operator not allowed here", "debug-token not allowed here", "special char not allowed here", "close parenthes not allowed here", "error creating expression tree", "expression ended with an operator", "term or const. not allowed here", "parentheses not allowed here", "conditional selector not allowed here", "internal expression-parser debug statement", "operator can't start expression", "bad operator found", "empty const not allowed here", "left operand missing", "right operand missing", "optional operand missing", "no valid l-value", "unexpected operand", "bad term found", "operator expected"};
-
- public JScriptExprParserException() {
- }
-
- public JScriptExprParserException(int var1) {
- super(var1, GetMessageForID(var1));
- }
-
- public JScriptExprParserException(int var1, String var2) {
- super(var1, var2 != null ? var2 : GetMessageForID(var1));
- }
-
- public JScriptExprParserException(int var1, JScriptTokenPosition var2) {
- super(var1, GetMessageForID(var1), var2);
- }
-
- public JScriptExprParserException(int var1, String var2, JScriptTokenPosition var3) {
- super(var1, var2 != null ? var2 : GetMessageForID(var1), var3);
- }
-
- protected static String GetMessageForID(int var0) {
- return var0 >= 1000 && var0 <= 1000 + aExprErrMsgArray.length ? aExprErrMsgArray[var0 - 1000] : JScriptParserException.GetMessageForID(var0);
- }
- }
-