Package org.jpmml.evaluator.functions
Class AbstractFunction
- java.lang.Object
-
- org.jpmml.evaluator.functions.AbstractFunction
-
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
BinaryFunction,MultiaryFunction,TernaryFunction,UnaryFunction
public abstract class AbstractFunction extends java.lang.Object implements Function
-
-
Constructor Summary
Constructors Constructor Description AbstractFunction(java.lang.String name)AbstractFunction(java.lang.String name, java.util.List<java.lang.String> aliases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckFixedArityArguments(java.util.List<FieldValue> arguments, int arity)protected voidcheckVariableArityArguments(java.util.List<FieldValue> arguments, int minArity)protected voidcheckVariableArityArguments(java.util.List<FieldValue> arguments, int minArity, int maxArity)java.util.List<java.lang.String>getAliases()protected FieldValuegetArgument(java.util.List<FieldValue> arguments, int index)java.lang.StringgetName()Gets the default name of this function.protected FieldValuegetOptionalArgument(java.util.List<FieldValue> arguments, int index)protected FieldValuegetRequiredArgument(java.util.List<FieldValue> arguments, int index)
-
-
-
Method Detail
-
checkFixedArityArguments
protected void checkFixedArityArguments(java.util.List<FieldValue> arguments, int arity)
-
checkVariableArityArguments
protected void checkVariableArityArguments(java.util.List<FieldValue> arguments, int minArity)
-
checkVariableArityArguments
protected void checkVariableArityArguments(java.util.List<FieldValue> arguments, int minArity, int maxArity)
-
getArgument
protected FieldValue getArgument(java.util.List<FieldValue> arguments, int index)
-
getOptionalArgument
protected FieldValue getOptionalArgument(java.util.List<FieldValue> arguments, int index)
-
getRequiredArgument
protected FieldValue getRequiredArgument(java.util.List<FieldValue> arguments, int index)
-
getName
public java.lang.String getName()
Description copied from interface:FunctionGets the default name of this function.
The default name should be unique in application scope. Currently, the JPMML library does not check or enforce this constraint in any way.
-
getAliases
public java.util.List<java.lang.String> getAliases()
-
-