final public int positive_int_value() throws ParseException { Token t; t = jj_consume_token(V_INTEGER); try { {if (true) return Integer.parseInt(t.image);} } catch (NumberFormatException e) { {if (true) throw new ParseException("Wrong format of integer: " + t.image);} } throw new Error("Missing return statement in function"); }
final public int positive_int_value() throws ParseException { Token t; t = jj_consume_token(V_INTEGER); try { {if (true) return Integer.parseInt(t.image);} } catch (NumberFormatException e) { {if (true) throw new ParseException("Wrong format of integer: " + t.image);} } throw new Error("Missing return statement in function"); }
final public DvDate date_value() throws ParseException { Token t; t = jj_consume_token(V_DATE); try { {if (true) return new DvDate(t.image);} } catch (Exception ignored) { {if (true) throw new ParseException("wrong date format: " + t.image);} } throw new Error("Missing return statement in function"); }
final public DvDate date_value() throws ParseException { Token t; t = jj_consume_token(V_DATE); try { {if (true) return new DvDate(t.image);} } catch (Exception ignored) { {if (true) throw new ParseException("wrong date format: " + t.image);} } throw new Error("Missing return statement in function"); }
jj_la1[31] = jj_gen; jj_consume_token(-1); throw new ParseException();
jj_la1[24] = jj_gen; jj_consume_token(-1); throw new ParseException();
final public boolean boolean_value() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SYM_TRUE: jj_consume_token(SYM_TRUE); {if (true) return true;} break; case SYM_FALSE: jj_consume_token(SYM_FALSE); {if (true) return false;} break; default: jj_la1[30] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public boolean boolean_value() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SYM_TRUE: jj_consume_token(SYM_TRUE); {if (true) return true;} break; case SYM_FALSE: jj_consume_token(SYM_FALSE); {if (true) return false;} break; default: jj_la1[30] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public ComplexObjectBlock complex_object_block() throws ParseException { ComplexObjectBlock obj; if (jj_2_3(2147483647)) { obj = single_attr_object_block(); } else if (jj_2_4(2147483647)) { obj = multiple_attr_object_block(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return obj;} throw new Error("Missing return statement in function"); }
final public ObjectBlock object_block() throws ParseException { ObjectBlock object; if (jj_2_5(2147483647)) { object = complex_object_block(); } else if (jj_2_6(2147483647)) { object = primitive_object_block(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return object;} throw new Error("Missing return statement in function"); }
final public ComplexObjectBlock complex_object_block() throws ParseException { ComplexObjectBlock obj; if (jj_2_3(2147483647)) { obj = single_attr_object_block(); } else if (jj_2_4(2147483647)) { obj = multiple_attr_object_block(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return obj;} throw new Error("Missing return statement in function"); }
final public ObjectBlock object_block() throws ParseException { ObjectBlock object; if (jj_2_5(2147483647)) { object = complex_object_block(); } else if (jj_2_6(2147483647)) { object = primitive_object_block(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return object;} throw new Error("Missing return statement in function"); }
final public List string_list_value() throws ParseException { List list = new ArrayList(); String value; value = string_value(); list.add(new StringValue(value)); label_4: while (true) { jj_consume_token(SYM_COMMA); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case V_STRING: value = string_value(); list.add(new StringValue(value)); break; case SYM_LIST_CONTINUE: jj_consume_token(SYM_LIST_CONTINUE); break; default: jj_la1[11] = jj_gen; jj_consume_token(-1); throw new ParseException(); } if (jj_2_30(2)) { ; } else { break label_4; } } {if (true) return list;} throw new Error("Missing return statement in function"); }
jj_la1[16] = jj_gen; jj_consume_token(-1); throw new ParseException();
/***************************************** * THE dADL LANGUAGE GRAMMAR STARTS HERE * *****************************************/ final public ContentObject input() throws ParseException { ContentObject obj; List < AttributeValue > attributeValues = null; ComplexObjectBlock complexObjectBlock = null; if (jj_2_1(2)) { attributeValues = attr_vals(); } else if (jj_2_2(2)) { complexObjectBlock = complex_object_block(); } else { jj_consume_token(-1); throw new ParseException(); } obj = new ContentObject(attributeValues, complexObjectBlock); {if (true) return obj;} throw new Error("Missing return statement in function"); }
/***************************************** * THE dADL LANGUAGE GRAMMAR STARTS HERE * *****************************************/ final public ContentObject input() throws ParseException { ContentObject obj; List < AttributeValue > attributeValues = null; ComplexObjectBlock complexObjectBlock = null; if (jj_2_1(2)) { attributeValues = attr_vals(); } else if (jj_2_2(2)) { complexObjectBlock = complex_object_block(); } else { jj_consume_token(-1); throw new ParseException(); } obj = new ContentObject(attributeValues, complexObjectBlock); {if (true) return obj;} throw new Error("Missing return statement in function"); }
final public String type_identifier() throws ParseException { Token t; String type; jj_consume_token(SYM_L_PARENTHESIS); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case V_TYPE_IDENTIFIER: t = jj_consume_token(V_TYPE_IDENTIFIER); type = t.image; break; case V_GENERIC_TYPE_IDENTIFIER: t = jj_consume_token(V_GENERIC_TYPE_IDENTIFIER); type = t.image; break; default: jj_la1[56] = jj_gen; jj_consume_token(-1); throw new ParseException(); } jj_consume_token(SYM_R_PARENTHESIS); {if (true) return type;} throw new Error("Missing return statement in function"); }
final public String type_identifier() throws ParseException { Token t; String type; jj_consume_token(SYM_L_PARENTHESIS); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case V_TYPE_IDENTIFIER: t = jj_consume_token(V_TYPE_IDENTIFIER); type = t.image; break; case V_GENERIC_TYPE_IDENTIFIER: t = jj_consume_token(V_GENERIC_TYPE_IDENTIFIER); type = t.image; break; default: jj_la1[56] = jj_gen; jj_consume_token(-1); throw new ParseException(); } jj_consume_token(SYM_R_PARENTHESIS); {if (true) return type;} throw new Error("Missing return statement in function"); }
final public Interval < Comparable > simple_interval_value() throws ParseException { Interval < Comparable > i; if (jj_2_24(2147483647)) { i = date_interval_value(); } else if (jj_2_25(2147483647)) { i = time_interval_value(); } else if (jj_2_26(2147483647)) { i = date_time_interval_value(); } else if (jj_2_27(2147483647)) { i = duration_interval_value(); } else if (jj_2_28(2147483647)) { i = real_interval_value(); } else if (jj_2_29(2147483647)) { i = integer_interval_value(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return i;} throw new Error("Missing return statement in function"); }
final public Interval < Comparable > simple_interval_value() throws ParseException { Interval < Comparable > i; if (jj_2_24(2147483647)) { i = date_interval_value(); } else if (jj_2_25(2147483647)) { i = time_interval_value(); } else if (jj_2_26(2147483647)) { i = date_time_interval_value(); } else if (jj_2_27(2147483647)) { i = duration_interval_value(); } else if (jj_2_28(2147483647)) { i = real_interval_value(); } else if (jj_2_29(2147483647)) { i = integer_interval_value(); } else { jj_consume_token(-1); throw new ParseException(); } {if (true) return i;} throw new Error("Missing return statement in function"); }