public abstract class AbstractFunction extends Object implements Function
| Constructor and Description |
|---|
AbstractFunction(String name) |
AbstractFunction(String name,
List<String> aliases) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkFixedArityArguments(List<FieldValue> arguments,
int arity) |
protected void |
checkVariableArityArguments(List<FieldValue> arguments,
int minArity) |
protected void |
checkVariableArityArguments(List<FieldValue> arguments,
int minArity,
int maxArity) |
List<String> |
getAliases() |
protected FieldValue |
getArgument(List<FieldValue> arguments,
int index) |
String |
getName()
Gets the default name of this function.
|
protected FieldValue |
getOptionalArgument(List<FieldValue> arguments,
int index) |
protected FieldValue |
getRequiredArgument(List<FieldValue> arguments,
int index) |
public AbstractFunction(String name)
protected void checkFixedArityArguments(List<FieldValue> arguments, int arity)
protected void checkVariableArityArguments(List<FieldValue> arguments, int minArity)
protected void checkVariableArityArguments(List<FieldValue> arguments, int minArity, int maxArity)
protected FieldValue getArgument(List<FieldValue> arguments, int index)
protected FieldValue getOptionalArgument(List<FieldValue> arguments, int index)
protected FieldValue getRequiredArgument(List<FieldValue> arguments, int index)
public String getName()
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.
Copyright © 2021. All rights reserved.