public static Node parse(String ref) throws ELException { try { return (new ELParser(new StringReader(ref))).CompositeExpression(); } catch (ParseException pe) { throw new ELException(pe.getMessage()); } }
final public void Literal() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TRUE: case FALSE: Boolean(); break; case FLOATING_POINT_LITERAL: FloatingPoint(); break; case INTEGER_LITERAL: Integer(); break; case STRING_LITERAL: String(); break; case NULL: Null(); break; default: jj_la1[50] = jj_gen; jj_consume_token(-1); throw new ParseException(); } }
final public void ValueSuffix() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOT: DotSuffix(); break; case LBRACK: BracketSuffix(); break; default: jj_la1[26] = jj_gen; jj_consume_token(-1); throw new ParseException(); } }
label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LITERAL_EXPRESSION: case START_DYNAMIC_EXPRESSION: break label_1; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case START_DEFERRED_EXPRESSION: DeferredExpression(); break; case START_DYNAMIC_EXPRESSION: DynamicExpression(); break; case LITERAL_EXPRESSION: LiteralExpression(); break; default: jj_la1[1] = jj_gen; jj_consume_token(-1); throw new ParseException(); jj_consume_token(0); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false;
final public void Assignment() throws ParseException { if (jj_2_2(4)) { LambdaExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case START_SET_OR_MAP: case INTEGER_LITERAL: case MINUS: case IDENTIFIER: Choice(); label_3: while (true) { if (jj_2_1(2)) { jj_consume_token(ASSIGN); AstAssign jjtn001 = new AstAssign(JJTASSIGN); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { Assignment(); } catch (Throwable jjte001) { if (jjtc001) { default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public void Choice() throws ParseException { Or(); label_2: while (true) { if (jj_2_1(3)) { jj_consume_token(QUESTIONMARK); Choice(); jj_consume_token(COLON); AstChoice jjtn001 = new AstChoice(JJTCHOICE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { Choice(); } catch (Throwable jjte001) { if (jjtc001) {
final public void Or() throws ParseException { And(); label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR0: case OR1: break label_7; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR0: jj_consume_token(OR0); break; case OR1: jj_consume_token(OR1); break; default: jj_la1[11] = jj_gen; jj_consume_token(-1); throw new ParseException(); jjtree.openNodeScope(jjtn001); try { And(); } catch (Throwable jjte001) { if (jjtc001) {
final public void Equality() throws ParseException { Compare(); label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EQ0: case EQ1: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EQ0: case EQ1: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EQ0: jj_consume_token(EQ0); break; case EQ1: jj_consume_token(EQ1); break; default: jj_la1[7] = jj_gen; jj_consume_token(-1); throw new ParseException(); jjtree.openNodeScope(jjtn001); try { Compare(); } catch (Throwable jjte001) { if (jjtc001) { case NE0:
jjtree.openNodeScope(jjtn000); try { jj_consume_token(LPAREN); LambdaParameters(); jj_consume_token(ARROW); if (jj_2_4(3)) { LambdaExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case START_SET_OR_MAP: case INTEGER_LITERAL: case MINUS: case IDENTIFIER: Choice(); break; default: jj_la1[8] = jj_gen; jj_consume_token(-1); throw new ParseException(); jj_consume_token(RPAREN); label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: MethodParameters();
jjtree.openNodeScope(jjtn000); try { LambdaParameters(); jj_consume_token(ARROW); if (jj_2_3(3)) { LambdaExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case START_SET_OR_MAP: case INTEGER_LITERAL: case MINUS: case IDENTIFIER: Choice(); break; default: jj_la1[4] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public void Choice() throws ParseException { Or(); label_6: while (true) { if (jj_2_5(3)) { jj_consume_token(QUESTIONMARK); Choice(); jj_consume_token(COLON); AstChoice jjtn001 = new AstChoice(JJTCHOICE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { Choice(); } catch (Throwable jjte001) { if (jjtc001) {
try { if (parser == null) { parser = new ELParser(new StringReader(expr)); } else { parser.ReInit(new StringReader(expr)); n = parser.CompositeExpression();
final public void Expression() throws ParseException { Choice(); }
label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LITERAL_EXPRESSION: case START_DYNAMIC_EXPRESSION: break label_1; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case START_DEFERRED_EXPRESSION: DeferredExpression(); break; case START_DYNAMIC_EXPRESSION: DynamicExpression(); break; case LITERAL_EXPRESSION: LiteralExpression(); break; default: jj_la1[1] = jj_gen; jj_consume_token(-1); throw new ParseException(); jj_consume_token(0); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false;
final public void Assignment() throws ParseException { if (jj_2_2(3)) { LambdaExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case START_SET_OR_MAP: case INTEGER_LITERAL: case MINUS: case IDENTIFIER: Choice(); label_3: while (true) { if (jj_2_1(2)) { jj_consume_token(ASSIGN); AstAssign jjtn001 = new AstAssign(JJTASSIGN); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { Assignment(); } catch (Throwable jjte001) { if (jjtc001) { default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public void Choice() throws ParseException { Or(); label_2: while (true) { if (jj_2_1(3)) { jj_consume_token(QUESTIONMARK); Choice(); jj_consume_token(COLON); AstChoice jjtn001 = new AstChoice(JJTCHOICE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { Choice(); } catch (Throwable jjte001) { if (jjtc001) {
final public void Or() throws ParseException { And(); label_3: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR0: case OR1: break label_3; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR0: jj_consume_token(OR0); break; case OR1: jj_consume_token(OR1); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); jjtree.openNodeScope(jjtn001); try { And(); } catch (Throwable jjte001) { if (jjtc001) {
final public void Equality() throws ParseException { Compare(); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EQ0: case EQ1: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EQ0: case EQ1: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EQ0: jj_consume_token(EQ0); break; case EQ1: jj_consume_token(EQ1); break; default: jj_la1[15] = jj_gen; jj_consume_token(-1); throw new ParseException(); jjtree.openNodeScope(jjtn001); try { Compare(); } catch (Throwable jjte001) { if (jjtc001) { case NE0:
jjtree.openNodeScope(jjtn000); try { jj_consume_token(LPAREN); LambdaParameters(); jj_consume_token(ARROW); if (jj_2_4(3)) { LambdaExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case START_SET_OR_MAP: case INTEGER_LITERAL: case MINUS: case IDENTIFIER: Choice(); break; default: jj_la1[8] = jj_gen; jj_consume_token(-1); throw new ParseException(); jj_consume_token(RPAREN); label_5: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: MethodParameters();
jjtree.openNodeScope(jjtn000); try { LambdaParameters(); jj_consume_token(ARROW); if (jj_2_3(3)) { LambdaExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case START_SET_OR_MAP: case INTEGER_LITERAL: case MINUS: case IDENTIFIER: Choice(); break; default: jj_la1[4] = jj_gen; jj_consume_token(-1); throw new ParseException();