public static void main(String args[]) throws ParseException { ELParser parser = new ELParser (System.in); parser.ExpressionString (); }
final public ValueSuffix ValueSuffix() throws ParseException { ValueSuffix suffix; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOT: suffix = PropertySuffix(); break; case LBRACKET: suffix = ArraySuffix(); break; default: jj_la1[32] = jj_gen; jj_consume_token(-1); throw new ParseException(); } return suffix; }
final public Literal Literal() throws ParseException { Literal ret; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TRUE: case FALSE: ret = BooleanLiteral(); break; case INTEGER_LITERAL: ret = IntegerLiteral(); break; case FLOATING_POINT_LITERAL: ret = FloatingPointLiteral(); break; case STRING_LITERAL: ret = StringLiteral(); break; case NULL: ret = NullLiteral(); break; default: jj_la1[33] = jj_gen; jj_consume_token(-1); throw new ParseException(); } return ret; }
final public Expression AttrValueExpression() throws ParseException { Expression exp; jj_consume_token(START_EXPRESSION); exp = Expression(); jj_consume_token(END_EXPRESSION); return exp; }
final public Expression ConditionalExpression() throws ParseException { Expression condition, trueBranch, falseBranch; condition = OrExpression(); jj_consume_token(COND); trueBranch = Expression(); jj_consume_token(COLON); falseBranch = Expression(); return new ConditionalExpression(condition, trueBranch, falseBranch); }
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case FALSE: case NULL: ret = Literal(); break; case LPAREN: jj_consume_token(LPAREN); ret = Expression(); jj_consume_token(RPAREN); break; default: jj_la1[28] = jj_gen; if (jj_2_2(2147483647)) { ret = FunctionInvocation(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: ret = NamedValue(); break; default: jj_la1[29] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public Expression Expression() throws ParseException { Expression ret; if (jj_2_1(2147483647)) { ret = ConditionalExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case STRING_LITERAL: case TRUE: case FALSE: case NULL: case LPAREN: case MINUS: case NOT1: case NOT2: case EMPTY: case IDENTIFIER: ret = OrExpression(); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } return ret; }
List argumentList = new ArrayList(); Expression exp; qualifiedName = QualifiedName(); jj_consume_token(LPAREN); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case EMPTY: case IDENTIFIER: exp = Expression(); argumentList.add(exp); label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: break label_10; jj_consume_token(COMMA); exp = Expression(); argumentList.add(exp); jj_consume_token(RPAREN); return new FunctionInvocation(qualifiedName, argumentList);
List elems = null; Object elem; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NON_EXPRESSION_TEXT: ret = AttrValueString(); break; case START_EXPRESSION: ret = AttrValueExpression(); break; default: jj_la1[0] = jj_gen; jj_consume_token(-1); throw new ParseException(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NON_EXPRESSION_TEXT: case START_EXPRESSION: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NON_EXPRESSION_TEXT: elem = AttrValueString(); break; case START_EXPRESSION: elem = AttrValueExpression(); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException();
List operators = null; List expressions = null; startExpression = EqualityExpression(); label_3: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND1: case AND2: break label_3; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND1: jj_consume_token(AND1); break; case AND2: jj_consume_token(AND2); break; default: jj_la1[7] = jj_gen; jj_consume_token(-1); throw new ParseException(); expression = EqualityExpression(); if (operators == null) { operators = new ArrayList ();
List operators = null; List expressions = null; startExpression = AndExpression(); label_2: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR1: case OR2: break label_2; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR1: jj_consume_token(OR1); break; case OR2: jj_consume_token(OR2); break; default: jj_la1[5] = jj_gen; jj_consume_token(-1); throw new ParseException(); expression = AndExpression(); if (operators == null) { operators = new ArrayList ();
List operators = null; List expressions = null; startExpression = AddExpression(); label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case GT1: case GT2: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LT1: case LT2: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LT1: jj_consume_token(LT1); break; case LT2: jj_consume_token(LT2); break; default: jj_la1[13] = jj_gen; jj_consume_token(-1); throw new ParseException(); case GT1: case GT2: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case GT1: jj_consume_token(GT1);
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case FALSE: case NULL: ret = Literal(); break; case LPAREN: jj_consume_token(LPAREN); ret = Expression(); jj_consume_token(RPAREN); break; default: jj_la1[28] = jj_gen; if (jj_2_2(2147483647)) { ret = FunctionInvocation(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: ret = NamedValue(); break; default: jj_la1[29] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public Expression Expression() throws ParseException { Expression ret; if (jj_2_1(2147483647)) { ret = ConditionalExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case STRING_LITERAL: case TRUE: case FALSE: case NULL: case LPAREN: case MINUS: case NOT1: case NOT2: case EMPTY: case IDENTIFIER: ret = OrExpression(); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } return ret; }
List argumentList = new ArrayList(); Expression exp; qualifiedName = QualifiedName(); jj_consume_token(LPAREN); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case EMPTY: case IDENTIFIER: exp = Expression(); argumentList.add(exp); label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: break label_10; jj_consume_token(COMMA); exp = Expression(); argumentList.add(exp); jj_consume_token(RPAREN); return new FunctionInvocation(qualifiedName, argumentList);
List elems = null; Object elem; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NON_EXPRESSION_TEXT: ret = AttrValueString(); break; case START_EXPRESSION: ret = AttrValueExpression(); break; default: jj_la1[0] = jj_gen; jj_consume_token(-1); throw new ParseException(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NON_EXPRESSION_TEXT: case START_EXPRESSION: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NON_EXPRESSION_TEXT: elem = AttrValueString(); break; case START_EXPRESSION: elem = AttrValueExpression(); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public Expression ConditionalExpression() throws ParseException { Expression condition, trueBranch, falseBranch; condition = OrExpression(); jj_consume_token(COND); trueBranch = Expression(); jj_consume_token(COLON); falseBranch = Expression(); return new ConditionalExpression(condition, trueBranch, falseBranch); }
List operators = null; List expressions = null; startExpression = EqualityExpression(); label_3: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND1: case AND2: break label_3; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND1: jj_consume_token(AND1); break; case AND2: jj_consume_token(AND2); break; default: jj_la1[7] = jj_gen; jj_consume_token(-1); throw new ParseException(); expression = EqualityExpression(); if (operators == null) { operators = new ArrayList ();
List operators = null; List expressions = null; startExpression = AndExpression(); label_2: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR1: case OR2: break label_2; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR1: jj_consume_token(OR1); break; case OR2: jj_consume_token(OR2); break; default: jj_la1[5] = jj_gen; jj_consume_token(-1); throw new ParseException(); expression = AndExpression(); if (operators == null) { operators = new ArrayList ();
List operators = null; List expressions = null; startExpression = AddExpression(); label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case GT1: case GT2: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LT1: case LT2: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LT1: jj_consume_token(LT1); break; case LT2: jj_consume_token(LT2); break; default: jj_la1[13] = jj_gen; jj_consume_token(-1); throw new ParseException(); case GT1: case GT2: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case GT1: jj_consume_token(GT1);