public interface Function
Modifier and Type | Method and Description |
---|---|
void |
connect(BaseContext context,
InteractionListener updateListener)
Gives the function a chance to connect itself to things, if necessary.
|
Function |
copy()
Creates a copy of this function.
|
void |
disconnect()
Tells the function to disconnect from anything it was connected to.
|
QualifiedValue |
execute(Expression[] args)
Execute this function, and return the function's qualified value.
|
java.lang.String |
getArgDocString()
Returns a string to be used in the auto-generated function documentation.
|
java.lang.Class<?> |
getType()
Returns the type of Object that this function will generate with execute
|
void |
initArgs(Expression[] args)
Initialize this function with the given arguments.
|
void |
shutdown()
Tells the function to shutdown any polling operations.
|
void |
startup()
Tells the function to startup any polling operations.
|
QualifiedValue execute(Expression[] args) throws ExpressionException
args
- ExpressionException
void initArgs(Expression[] args)
args
- java.lang.Class<?> getType()
java.lang.String getArgDocString()
Function copy()
void connect(BaseContext context, InteractionListener updateListener)
context
- updateListener
- void disconnect()
void startup()
void shutdown()