Search in sources :

Example 1 with StartsWithAtom

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

the class RuleParserImpl method startsWithAtom.

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

Aggregations

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