@PersistantProperties(properties=@PersistantProperty(property="executables",alias="executable")) public class Function extends AbstractAddon implements ICallable
Modifier and Type | Field and Description |
---|---|
static String |
FUNCTION_ID |
Constructor and Description |
---|
Function() |
Modifier and Type | Method and Description |
---|---|
IExecutionResult |
call(IExecutionContext ctxt)
Executes the call.
|
Function |
clone()
Clones the Addon.
|
void |
compile(ICompilationContext ctxt)
Compiles this callable and all its sub components.
|
boolean |
equals(Object o) |
CostInfo |
getEstimatedReadCost(ICompilationContext ctxt)
Estimates the whole call complexity, to allow callers to optimize calls.
|
List<? extends IExecutable> |
getExecutables() |
String |
getImplementationId()
Unique addon implementation ID.
|
int |
hashCode() |
void |
setExecutables(List<? extends IExecutable> executables) |
void |
toString(OuterWithLevel outer)
Method used to send String representation of the current object to the
OuterWithLevel . |
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, toString, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalCacheIdentifier, isCacheUsed, isInternalCacheIdentifierNeeded, optimize, resetCachedData, setInternalCacheIdentifier, wasRegistered
getDebugInfo, getDescription, getName, setDebugInfo, setDescription, setName
public static final String FUNCTION_ID
public void compile(ICompilationContext ctxt) throws MRuleValidationException
ICallable
compile
in interface ICallable
MRuleValidationException
public CostInfo getEstimatedReadCost(ICompilationContext ctxt) throws MRuleValidationException
ICallable
getEstimatedReadCost
in interface ICallable
ctxt
- Compilation context.MRuleValidationException
- if validation problem detected.public IExecutionResult call(IExecutionContext ctxt) throws MExecutionException
ICallable
IExecutionResult.getReturnedValue()
method.call
in interface ICallable
MExecutionException
public void toString(OuterWithLevel outer) throws IOException
Outable
OuterWithLevel
.toString
in interface Outable
IOException
public String getImplementationId()
IAddon
getImplementationId
in interface IAddon
public Function clone()
IAddon
clone
in interface IAddon
clone
in interface IMRulesObject
clone
in interface ICallable
clone
in class AbstractAddon
public List<? extends IExecutable> getExecutables()
public void setExecutables(List<? extends IExecutable> executables)