use of org.apache.stanbol.rules.manager.atoms.ExpressionAtom in project stanbol by apache.
the class RuleParserImpl method sameAsAtom.
public final SameAtom sameAsAtom() throws ParseException {
ExpressionAtom expressionAtom1;
ExpressionAtom expressionAtom2;
jj_consume_token(SAME);
jj_consume_token(LPAR);
expressionAtom1 = expressionAtom();
jj_consume_token(COMMA);
expressionAtom2 = expressionAtom();
jj_consume_token(RPAR);
{
if (true)
return new SameAtom(expressionAtom1, expressionAtom2);
}
throw new Error("Missing return statement in function");
}
use of org.apache.stanbol.rules.manager.atoms.ExpressionAtom in project stanbol by apache.
the class RuleParserImpl method lessThanAtom.
public final LessThanAtom lessThanAtom() throws ParseException {
ExpressionAtom obj1;
ExpressionAtom obj2;
jj_consume_token(LESSTHAN);
jj_consume_token(LPAR);
obj1 = expressionAtom();
jj_consume_token(COMMA);
obj2 = expressionAtom();
jj_consume_token(RPAR);
{
if (true)
return new LessThanAtom(obj1, obj2);
}
throw new Error("Missing return statement in function");
}
use of org.apache.stanbol.rules.manager.atoms.ExpressionAtom in project stanbol by apache.
the class RuleParserImpl method differentFromAtom.
public final DifferentAtom differentFromAtom() throws ParseException {
ExpressionAtom expressionAtom1;
ExpressionAtom expressionAtom2;
jj_consume_token(DIFFERENT);
jj_consume_token(LPAR);
expressionAtom1 = expressionAtom();
jj_consume_token(COMMA);
expressionAtom2 = expressionAtom();
jj_consume_token(RPAR);
{
if (true)
return new DifferentAtom(expressionAtom1, expressionAtom2);
}
throw new Error("Missing return statement in function");
}
use of org.apache.stanbol.rules.manager.atoms.ExpressionAtom in project stanbol by apache.
the class RuleParserImpl method greaterEqualThanAtom.
public final GreaterEqualThanAtom greaterEqualThanAtom() throws ParseException {
ExpressionAtom obj1;
ExpressionAtom obj2;
jj_consume_token(GREATEREQUALTHAN);
jj_consume_token(LPAR);
obj1 = expressionAtom();
jj_consume_token(COMMA);
obj2 = expressionAtom();
jj_consume_token(RPAR);
{
if (true)
return new GreaterEqualThanAtom(obj1, obj2);
}
throw new Error("Missing return statement in function");
}
use of org.apache.stanbol.rules.manager.atoms.ExpressionAtom in project stanbol by apache.
the class RuleParserImpl method literal.
public final 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");
}
Aggregations