Rule Execution Server API

ilog.rules.factory
Class IlrFunctionInvocation

java.lang.Object
  extended by ilog.rules.factory.IlrValue
      extended by ilog.rules.factory.IlrNaryValue
          extended by ilog.rules.factory.IlrFunctionInvocation
All Implemented Interfaces:
ilog.rules.factory.IlrSourceElement, IlrStatement, Serializable

public class IlrFunctionInvocation
extends IlrNaryValue
implements IlrStatement

This class represents a function invocation of the rule language.

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.

See Also:
Serialized Form

Constructor Summary
IlrFunctionInvocation(IlrFunctionFactory function, IlrValue[] arguments)
          Constructs a function invocation using a function declaration and an argument list.
IlrFunctionInvocation(IlrReflect reflect)
          Constructs an uninitialized function invocation.
 
Method Summary
 Object exploreStatement(IlrFactoryExplorer explorer)
          Explores this function as a statement using a factory explorer and returns an object as a result.
 Object exploreValue(IlrFactoryExplorer explorer)
          Explores this value using a factory explorer and returns an object as a result.
 IlrFunctionFactory getFunction()
          Gets the function of the IlrFunctionInvocation.
 String getName()
          Gets the name of the IlrFunctionInvocation function.
 void setFunction(IlrFunctionFactory function)
          Sets the function.
 String toString()
           
 
Methods inherited from class ilog.rules.factory.IlrNaryValue
addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, enumerateArguments, getArgumentCount, getArguments, getXOMArgumentTypes
 
Methods inherited from class ilog.rules.factory.IlrValue
add, divide, getField, getReflect, getType, getXOMType, invokeEquals, isConstant, isEvent, isEventCondition, isNull, multiply, remainder, subtract, testAfter, testAfter, testBefore, testBefore, testEqual, testFalse, testGreaterOrEqual, testGreaterThan, testIn, testInstanceOf, testLessOrEqual, testLessThan, testNotEqual, testNotIn, testOccursin, testTrue, timeof, toNegative, toPositive, toPostfixDecr, toPostfixIncr, toPrefixDecr, toPrefixIncr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlrFunctionInvocation

public IlrFunctionInvocation(IlrReflect reflect)
Constructs an uninitialized function invocation.

Parameters:
reflect - A reflect.

IlrFunctionInvocation

public IlrFunctionInvocation(IlrFunctionFactory function,
                             IlrValue[] arguments)
Constructs a function invocation using a function declaration and an argument list.

Parameters:
function - A function.
arguments - The arguments.
Method Detail

setFunction

public void setFunction(IlrFunctionFactory function)
Sets the function.

Parameters:
function - The function.

getFunction

public IlrFunctionFactory getFunction()
Gets the function of the IlrFunctionInvocation.

Returns:
The function of this function invocation.

getName

public String getName()
Gets the name of the IlrFunctionInvocation function.

Returns:
The name of the function of this function invocation.

exploreValue

public Object exploreValue(IlrFactoryExplorer explorer)
Explores this value using a factory explorer and returns an object as a result.

Specified by:
exploreValue in class IlrValue
Parameters:
explorer - The factory explorer.
Returns:
An object which represents the result of the exploration, or null if the method does not return a value.

exploreStatement

public Object exploreStatement(IlrFactoryExplorer explorer)
Explores this function as a statement using a factory explorer and returns an object as a result.

Specified by:
exploreStatement in interface IlrStatement
Parameters:
explorer - The factory explorer.
Returns:
An object, the result of the exploration, or null if the method does not return a value.

toString

public String toString()
Overrides:
toString in class Object

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013