Search in sources :

Example 1 with NewLiteralAtom

use of org.apache.stanbol.rules.manager.atoms.NewLiteralAtom 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");
}
Also used : StringFunctionAtom(org.apache.stanbol.rules.manager.atoms.StringFunctionAtom) NewLiteralAtom(org.apache.stanbol.rules.manager.atoms.NewLiteralAtom) IObjectAtom(org.apache.stanbol.rules.manager.atoms.IObjectAtom)

Aggregations

IObjectAtom (org.apache.stanbol.rules.manager.atoms.IObjectAtom)1 NewLiteralAtom (org.apache.stanbol.rules.manager.atoms.NewLiteralAtom)1 StringFunctionAtom (org.apache.stanbol.rules.manager.atoms.StringFunctionAtom)1