private Invoker createInvokers( Fields expectedFields, Predicate predicate )
{
if( ( predicate instanceof SimplePredicate ) )
{
SimplePredicate simplePredicate = (SimplePredicate) predicate;
String argumentField = simplePredicate.getArgumentField();
if( argumentField == null )
return new NoArgPredicateInvoker( simplePredicate );
else
return new PredicateInvoker( simplePredicate, expectedFields.getPos( argumentField ) );