public interface RuleFunction
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RuleFunction.ParameterDescriptor
Describes a
RuleFunction parameter. |
| Modifier and Type | Method and Description |
|---|---|
RuleFunction.ParameterDescriptor[] |
getParameterDescriptors()
Gets all the parameter descriptors for this rule function.
|
java.lang.String |
getSignature()
Returns the original signature of the
RuleFunction in string format. |
java.lang.Object |
invoke(java.util.Map maps)
Invokes the rule function with a map.
|
java.lang.Object |
invoke(java.lang.Object[] objects)
Invokes the rule function with an array of objects.
|
java.lang.Object invoke(java.lang.Object[] objects)
objects - the input parameters for the rule function.java.lang.Object invoke(java.util.Map maps)
maps - the input parameters for the rule function,
maps the parameter name to the corresponding value.java.lang.String getSignature()
RuleFunction in string format.RuleFunction in string formatRuleFunction.ParameterDescriptor[] getParameterDescriptors()
ParameterDescriptor describe a parameter of this RuleFunction,
except the last one, which has the name "returnValue" and describes the return type.ParameterDescriptor[] for this RuleFunction.