public class NumericFunction extends Object implements Function
Constructor and Description |
---|
NumericFunction(Method method)
Creates a new math reflection function.
|
Modifier and Type | Method and Description |
---|---|
Value |
applyTo(Expression[] arguments)
Invokes the function using the given arguments and returns the result.
|
String |
getIdentifier()
Returns the operator's string identirifer.
|
FunctionParameter[] |
getParameters()
Returns the parameters of the function.
|
boolean |
isVarArg()
Returns whether the function accepts a variable number of arguments,
i.e. whether the function's parameter list is unbounded.
|
public NumericFunction(Method method)
public String getIdentifier()
Function
getIdentifier
in interface Function
public Value applyTo(Expression[] arguments) throws IllegalValueTypeException
Function
applyTo
in interface Function
IllegalValueTypeException
public FunctionParameter[] getParameters()
Function
getParameters
in interface Function