Rule Execution Server API

ilog.rules.factory
Class IlrReturnStatement

java.lang.Object
  extended by ilog.rules.factory.IlrBaseStatement
      extended by ilog.rules.factory.IlrReturnStatement
All Implemented Interfaces:
ilog.rules.factory.IlrSourceElement, IlrStatement, Serializable

public final class IlrReturnStatement
extends IlrBaseStatement

This class represents a return statement 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
IlrReturnStatement()
          Constructs a return statement.
IlrReturnStatement(IlrValue value)
          Constructs a return statement.
 
Method Summary
 Object exploreStatement(IlrFactoryExplorer explorer)
          Explores the return statement using a factory explorer and returns an object as a result.
 IlrValue getValue()
          Gets the returned value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrReturnStatement

public IlrReturnStatement(IlrValue value)
Constructs a return statement.

Parameters:
value - The return value of the instruction.

IlrReturnStatement

public IlrReturnStatement()
Constructs a return statement.

Method Detail

getValue

public IlrValue getValue()
Gets the returned value.

Returns:
The value of the variable.

exploreStatement

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

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.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013