public abstract class RuleFunction
extends java.lang.Object
| Constructor and Description | 
|---|
RuleFunction()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract boolean | 
evaluate(RuleEvaluationContext ruleContext, java.util.Map<java.lang.String,RuleFunctionParameter> parameters)  | 
protected RuleFunctionParameter | 
getRequiredParameterOrThrow(java.util.Map<java.lang.String,RuleFunctionParameter> parameters, java.lang.String paramName)
Helper method that retrieves the parameter matching the given paramName from the parameters map and throws a RuleEvaluationException if no such parameter is contained in the map 
 | 
protected boolean | 
matchesNameOfClassOrAncestor(java.lang.Class clazz, java.lang.String className)
Returns true if the given className matches the class name of the given Class object, or any of the supertypes in the class heirarchy. 
 | 
public abstract boolean evaluate(RuleEvaluationContext ruleContext, java.util.Map<java.lang.String,RuleFunctionParameter> parameters) throws RuleEvaluationException
RuleEvaluationExceptionprotected final RuleFunctionParameter getRequiredParameterOrThrow(java.util.Map<java.lang.String,RuleFunctionParameter> parameters, java.lang.String paramName) throws RuleEvaluationException
RuleEvaluationException
protected final boolean matchesNameOfClassOrAncestor(java.lang.Class clazz,
                                   java.lang.String className)
clazz -className -