public class IlrFunctionTaskFactory extends IlrTaskFactory
This class represents the class of a function-based task definition of the IRL language. It provides the specific body as inlined IRL code.
Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short-term storage or RMI between applications running the same version of IBM Decision Server.
| Constructor and Description |
|---|
IlrFunctionTaskFactory(IlrReflect reflect,
IlrPackageFactory pkg,
java.lang.String name)
Builds a function-based task by specifying a reflect and a name.
|
IlrFunctionTaskFactory(IlrReflect reflect,
java.lang.String name)
Deprecated.
Use instead
IlrFunctionTaskFactory(IlrReflect reflect, IlrPackageFactory pkg,
String name). |
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList |
getAllStatements()
Provides all statements referenced by the task definition.
|
IlrFunctionFactory |
getFunction()
Returns the task body.
|
boolean |
hasEmptyBody()
Indicates whether the task has an empty body or not, that is, if there are
no statements for the task body.
|
void |
setFunction(IlrFunctionFactory function)
Sets the body of the function-based task.
|
getAllValues, getCompletionFlagValue, getFinalActions, getFormalComment, getInitialActions, getName, getPackage, getProperties, getShortName, setCompletionFlagValue, setFinalActions, setFormalComment, setInitialActions, setPropertiespublic IlrFunctionTaskFactory(IlrReflect reflect, java.lang.String name)
IlrFunctionTaskFactory(IlrReflect reflect, IlrPackageFactory pkg,
String name).reflect - The reflect object of this function-based task factory.name - The name of the function-based task.public IlrFunctionTaskFactory(IlrReflect reflect, IlrPackageFactory pkg, java.lang.String name)
null,
the task is considered to belong to the default package.
The body is empty.reflect - The reflect object of this function-based task factory.pkg - The package to which the task belongs.name - The name of the function-based task.public void setFunction(IlrFunctionFactory function)
null, return void, and have no arguments.
If any of these
conditions is not verified, an IllegalArgumentException exception
is thrown.function - The function that implements the task body.public IlrFunctionFactory getFunction()
public boolean hasEmptyBody()
hasEmptyBody in class IlrTaskFactorytrue if the task body is empty, else it returns
false.public java.util.ArrayList getAllStatements()
getAllStatements in class IlrTaskFactory© Copyright IBM Corp. 1987, 2017