Search in sources :

Example 1 with EndsWithAtom

use of org.apache.stanbol.rules.manager.atoms.EndsWithAtom in project stanbol by apache.

the class RuleParserImpl method endsWithAtom.

public final ComparisonAtom endsWithAtom() throws ParseException {
    RuleAtom ruleAtom;
    StringFunctionAtom arg;
    StringFunctionAtom stringFunctionAtom;
    jj_consume_token(ENDS_WITH);
    jj_consume_token(LPAR);
    arg = stringFunctionAtom();
    jj_consume_token(COMMA);
    stringFunctionAtom = stringFunctionAtom();
    jj_consume_token(RPAR);
    {
        if (true)
            return new EndsWithAtom(arg, stringFunctionAtom);
    }
    throw new Error("Missing return statement in function");
}
Also used : StringFunctionAtom(org.apache.stanbol.rules.manager.atoms.StringFunctionAtom) EndsWithAtom(org.apache.stanbol.rules.manager.atoms.EndsWithAtom) RuleAtom(org.apache.stanbol.rules.base.api.RuleAtom)

Aggregations

RuleAtom (org.apache.stanbol.rules.base.api.RuleAtom)1 EndsWithAtom (org.apache.stanbol.rules.manager.atoms.EndsWithAtom)1 StringFunctionAtom (org.apache.stanbol.rules.manager.atoms.StringFunctionAtom)1