final public void expressionCont() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND: jj_consume_token(AND); expression(); break; default: jj_la1[0] = jj_gen; } }
final public void expressionCont() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND: jj_consume_token(AND); expression(); break; default: jj_la1[0] = jj_gen; } }
final public IObjectAtom typedLiteral() throws ParseException { IObjectAtom type = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case APOX: jj_consume_token(APOX); jj_consume_token(APOX); type = reference(); break; default: jj_la1[14] = jj_gen; } {if (true) return type;} throw new Error("Missing return statement in function"); }
final public IObjectAtom typedLiteral() throws ParseException { IObjectAtom type = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case APOX: jj_consume_token(APOX); jj_consume_token(APOX); type = reference(); break; default: jj_la1[14] = jj_gen; } {if (true) return type;} throw new Error("Missing return statement in function"); }
final public AtomList atomListRest() throws ParseException { AtomList atomList = new AtomList(); RuleAtom kReSAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND: jj_consume_token(AND); atomList = atomList(); {if (true) return atomList;} break; default: jj_la1[3] = jj_gen; {if (true) return atomList;} } throw new Error("Missing return statement in function"); }
final public AtomList atomListRest() throws ParseException { AtomList atomList = new AtomList(); RuleAtom kReSAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND: jj_consume_token(AND); atomList = atomList(); {if (true) return atomList;} break; default: jj_la1[3] = jj_gen; {if (true) return atomList;} } throw new Error("Missing return statement in function"); }
final public IObjectAtom reference() throws ParseException { String uri1; Token colon; String uri3; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case URI: uri1 = getURI(); uri1 = uri1.substring(1, uri1.length()-1); try { {if (true) return new ResourceAtom(new URI(uri1));} } catch (URISyntaxException e) { e.printStackTrace(); } break; case VAR: uri1 = getVariable(); colon = jj_consume_token(COLON); uri3 = getVariable(); {if (true) return new ResourceAtom(getSWRLArgument(uri1+colon.image+uri3));} break; default: jj_la1[8] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public IObjectAtom varReference() throws ParseException { String uri1; Token colon; String uri3; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case URI: uri1 = getURI(); try { {if (true) return new ResourceAtom(new URI(uri1));} } catch (URISyntaxException e) { e.printStackTrace(); } break; case VAR: uri1 = getVariable(); colon = jj_consume_token(COLON); uri3 = getVariable(); {if (true) return new ResourceAtom(getSWRLArgument(uri1+colon.image+uri3));} break; default: jj_la1[9] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public RuleAtom dObject() throws ParseException { RuleAtom variable; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NUM: case STRING: variable = literal(); break; case NOTEX: case VARIABLE: case BNODE: variable = variable(); break; default: jj_la1[12] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return variable;} throw new Error("Missing return statement in function"); }
final public IObjectAtom iObject() throws ParseException { IObjectAtom uri; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NOTEX: case VARIABLE: case BNODE: uri = variable(); {if (true) return uri;} break; case VAR: case URI: uri = reference(); {if (true) return uri;} break; default: jj_la1[11] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public IObjectAtom iObject() throws ParseException { IObjectAtom uri; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NOTEX: case VARIABLE: case BNODE: uri = variable(); {if (true) return uri;} break; case VAR: case URI: uri = reference(); {if (true) return uri;} break; default: jj_la1[11] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public IObjectAtom varReference() throws ParseException { String uri1; Token colon; String uri3; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case URI: uri1 = getURI(); try { {if (true) return new ResourceAtom(new URI(uri1));} } catch (URISyntaxException e) { e.printStackTrace(); } break; case VAR: uri1 = getVariable(); colon = jj_consume_token(COLON); uri3 = getVariable(); {if (true) return new ResourceAtom(getSWRLArgument(uri1+colon.image+uri3));} break; default: jj_la1[9] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public RuleAtom dObject() throws ParseException { RuleAtom variable; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NUM: case STRING: variable = literal(); break; case NOTEX: case VARIABLE: case BNODE: variable = variable(); break; default: jj_la1[12] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return variable;} throw new Error("Missing return statement in function"); }
final public AtomList atomList() throws ParseException { AtomList atomList = new AtomList(); RuleAtom kReSAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SAME: case DIFFERENT: case LESSTHAN: case GREATERTHAN: case IS: case NEW_IRI: case NEW_LITERAL: case STARTS_WITH: case ENDS_WITH: case LET: case HAS: case VALUES: case NOT: case UNION: case IS_BLANK: kReSAtom = atom(); atomList = atomListRest(); atomList.addToHead(kReSAtom); {if (true) return atomList;} break; default: jj_la1[2] = jj_gen; {if (true) return atomList;} } throw new Error("Missing return statement in function"); }
final public ExpressionAtom expressionAtom() throws ParseException { ExpressionAtom expressionAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SUBSTRING: case UPPERCASE: case LOWERCASE: case CONCAT: case NAMESPACE: case LOCALNAME: case STR: case CREATE_LABEL: case PROP: case VARIABLE: case STRING: expressionAtom = stringFunctionAtom(); break; case LENGTH: case PLUS: case MINUS: case NUM: expressionAtom = numericFunctionAtom(); break; default: jj_la1[6] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return expressionAtom;} throw new Error("Missing return statement in function"); }
final public Object uObject() throws ParseException { Object obj; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NOTEX: case VARIABLE: case BNODE: obj = variable(); break; case VAR: case URI: obj = reference(); break; case STRING: obj = getString(); break; case NUM: obj = getInt(); break; default: jj_la1[10] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return obj;} throw new Error("Missing return statement in function"); }
final public Object uObject() throws ParseException { Object obj; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NOTEX: case VARIABLE: case BNODE: obj = variable(); break; case VAR: case URI: obj = reference(); break; case STRING: obj = getString(); break; case NUM: obj = getInt(); break; default: jj_la1[10] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return obj;} throw new Error("Missing return statement in function"); }
final public ExpressionAtom literal() throws ParseException { ExpressionAtom literal; IObjectAtom typedLiteral; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STRING: literal = getString(); typedLiteral = typedLiteral(); break; case NUM: literal = getInt(); typedLiteral = typedLiteral(); break; default: jj_la1[13] = jj_gen; jj_consume_token(-1); throw new ParseException(); } if(typedLiteral != null){ {if (true) return new TypedLiteralAtom(literal, typedLiteral);} } else{ {if (true) return literal;} } throw new Error("Missing return statement in function"); }
final public ExpressionAtom literal() throws ParseException { ExpressionAtom literal; IObjectAtom typedLiteral; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STRING: literal = getString(); typedLiteral = typedLiteral(); break; case NUM: literal = getInt(); typedLiteral = typedLiteral(); break; default: jj_la1[13] = jj_gen; jj_consume_token(-1); throw new ParseException(); } if(typedLiteral != null){ {if (true) return new TypedLiteralAtom(literal, typedLiteral);} } else{ {if (true) return literal;} } throw new Error("Missing return statement in function"); }
final public NumericFunctionAtom numericFunctionAtom() throws ParseException { NumericFunctionAtom numericFunctionAtom; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case PLUS: numericFunctionAtom = sumAtom(); break; case MINUS: numericFunctionAtom = subtractionAtom(); break; case LENGTH: numericFunctionAtom = lengthAtom(); break; case NUM: numericFunctionAtom = numberAtom(); break; case VARIABLE: numericFunctionAtom = numericVariable(); break; default: jj_la1[7] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return numericFunctionAtom;} throw new Error("Missing return statement in function"); }