return MatchNode.parse(m_parser.parse(expression));
}
public void testEvaluation()
{
InvocationContext context = new InvocationContext(Repository.getMetadata());
MatchOperator op = new MatchOperator(context);
Metaclass metaclass = context.getMetadata().getMetaclass("Contact");
AttributeOperator attribOp = new AttributeOperator(
new Field(new Query(metaclass, context), metaclass.getAttribute("firstName")));
context.setLocale(Locale.ENGLISH);
op.setAttribute(attribOp);
attribOp.setConstant(true);
attribOp.setValue("a abc def ghi");
op.setExpression(parse("a and b"));