public boolean assessMatch ( final OgnlContext ognlContext ) throws OgnlException { if ( ! inputRun ) { throw new IllegalArgumentException ( "Attempted to match on a rule whose rulesets input has not yet been produced" ) ; } final Object result = condition . run ( ognlContext , ognlContext ) ; if ( result == null || ! Boolean . class . isAssignableFrom ( result . getClass ( ) ) ) { throw new IllegalArgumentException ( "Expression " + condition . getOriginalExpression ( ) + " did not return a boolean value" ) ; } matches = ( Boolean ) result ; return matches ; }
returns true if the rules condition holds should not be called until after the rule sets input has been produced