Interface IFunction
-
- All Known Implementing Classes:
Div
,ExtractMulti
,Identity
,Length
,MethodCallFunction
,Min
,Modulo
,Mult
,OperatorFunction
,Sub
,Sum
public interface IFunction
Interface for functions.
-
-
Field Summary
Fields Modifier and Type Field Description static IFunction
DIV
The div function for dividing a value by another value.static IFunction
MOD
The modulo function for building the remainder after dividing two values.static IFunction
MULT
The mult function for multiplying two or more values.static IFunction
SUB
The sub function for subtracting one or more values from another value.static IFunction
SUM
The sum function for adding two or more values.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttributeSet
getRelevantAttributes()
Get the set of relevant attribute types.java.lang.Class
getReturnType()
Get the return type of this function.java.lang.Object
invoke(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.
-
-