Interface IFunction
-
- All Known Implementing Classes:
Div,ExtractMulti,Identity,Length,MethodCallFunction,Min,Modulo,Mult,OperatorFunction,Sub,Sum
public interface IFunctionInterface for functions.
-
-
Field Summary
Fields Modifier and Type Field Description static IFunctionDIVThe div function for dividing a value by another value.static IFunctionMODThe modulo function for building the remainder after dividing two values.static IFunctionMULTThe mult function for multiplying two or more values.static IFunctionSUBThe sub function for subtracting one or more values from another value.static IFunctionSUMThe sum function for adding two or more values.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributeSetgetRelevantAttributes()Get the set of relevant attribute types.java.lang.ClassgetReturnType()Get the return type of this function.java.lang.Objectinvoke(java.lang.Object[] paramvalues, IOAVState state)Invoke a function and return a value (optional).
-
-
-
Field Detail
-
SUM
static final IFunction SUM
The sum function for adding two or more values.
-
SUB
static final IFunction SUB
The sub function for subtracting one or more values from another value.
-
MULT
static final IFunction MULT
The mult function for multiplying two or more values.
-
DIV
static final IFunction DIV
The div function for dividing a value by another value.
-
MOD
static final IFunction MOD
The modulo function for building the remainder after dividing two values.
-
-
Method Detail
-
invoke
java.lang.Object invoke(java.lang.Object[] paramvalues, IOAVState state)Invoke a function and return a value (optional).- Parameters:
paramvalues- The parameter values.state- The state.- Returns:
- The function value.
-
getReturnType
java.lang.Class getReturnType()
Get the return type of this function.
-
getRelevantAttributes
AttributeSet getRelevantAttributes()
Get the set of relevant attribute types.- Returns:
- The relevant attribute types.
-
-