use of org.apache.stanbol.rules.manager.atoms.IObjectAtom in project stanbol by apache.
the class RuleParserImpl method newIRIAtom.
public final NewIRIAtom newIRIAtom() throws ParseException {
IObjectAtom arg1;
StringFunctionAtom arg2;
jj_consume_token(NEW_IRI);
jj_consume_token(LPAR);
arg1 = iObject();
jj_consume_token(COMMA);
arg2 = stringFunctionAtom();
jj_consume_token(RPAR);
{
if (true)
return new NewIRIAtom(arg1, arg2);
}
throw new Error("Missing return statement in function");
}
use of org.apache.stanbol.rules.manager.atoms.IObjectAtom in project stanbol by apache.
the class RuleParserImpl method iObject.
public final 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");
}
use of org.apache.stanbol.rules.manager.atoms.IObjectAtom in project stanbol by apache.
the class RuleParserImpl method newLiteralAtom.
public final NewLiteralAtom newLiteralAtom() throws ParseException {
IObjectAtom arg1;
StringFunctionAtom arg2;
jj_consume_token(NEW_LITERAL);
jj_consume_token(LPAR);
arg1 = iObject();
jj_consume_token(COMMA);
arg2 = stringFunctionAtom();
jj_consume_token(RPAR);
{
if (true)
return new NewLiteralAtom(arg1, arg2);
}
throw new Error("Missing return statement in function");
}
use of org.apache.stanbol.rules.manager.atoms.IObjectAtom in project stanbol by apache.
the class RuleParserImpl method isBlankAtom.
public final ComparisonAtom isBlankAtom() throws ParseException {
IObjectAtom uriRes;
jj_consume_token(IS_BLANK);
jj_consume_token(LPAR);
uriRes = iObject();
jj_consume_token(RPAR);
{
if (true)
return new IsBlankAtom(uriRes);
}
throw new Error("Missing return statement in function");
}
use of org.apache.stanbol.rules.manager.atoms.IObjectAtom in project stanbol by apache.
the class RuleParserImpl method strAtom.
public final StrAtom strAtom() throws ParseException {
IObjectAtom uri;
jj_consume_token(STR);
jj_consume_token(LPAR);
uri = iObject();
jj_consume_token(RPAR);
{
if (true)
return new StrAtom(uri);
}
throw new Error("Missing return statement in function");
}
Aggregations