public abstract class AbstractInvocable extends java.lang.Object implements Invocable
Constructor and Description |
---|
AbstractInvocable() |
Modifier and Type | Method and Description |
---|---|
void |
addFunction(InvocableFunction function)
Add an function
|
boolean |
canInvoke(java.lang.String functionName,
java.lang.Object[] args)
whether the function can be invoke with the arguments
|
InvocableFunction |
getFunction(java.lang.String functionName,
java.lang.Class[] argTypes) |
InvocableFunction |
getFunction(java.lang.String functionName,
java.lang.Object[] args)
Get the function
|
java.util.Collection |
getFunctions()
Get all the functions
|
java.lang.Object |
invoke(java.lang.String functionName,
java.lang.Object[] args)
invoke the function with the arguments provided
|
public void addFunction(InvocableFunction function)
functionName
- the function namefunction
- the functionpublic InvocableFunction getFunction(java.lang.String functionName, java.lang.Object[] args)
getFunction
in interface Invocable
functionName
- the function nameargs
- the argumentspublic InvocableFunction getFunction(java.lang.String functionName, java.lang.Class[] argTypes)
public boolean canInvoke(java.lang.String functionName, java.lang.Object[] args)
public java.lang.Object invoke(java.lang.String functionName, java.lang.Object[] args) throws java.lang.Exception
public java.util.Collection getFunctions()