Rule Execution Server API

ilog.rules.factory
Class IlrInstanceOfTest

java.lang.Object
  extended by ilog.rules.factory.IlrBaseTest
      extended by ilog.rules.factory.IlrInstanceOfTest
All Implemented Interfaces:
ilog.rules.factory.IlrSourceElement, IlrTest, Serializable

public class IlrInstanceOfTest
extends IlrBaseTest

This class represents an instanceof test of the rule language. An instanceof test checks whether the value of an expression is of a given type.

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
IlrInstanceOfTest(IlrValue value, IlrClassTypeValue type)
          Constructs an instanceof test using a value and a type value.
 
Method Summary
 Object exploreTest(IlrFactoryExplorer explorer)
          Explores this test using a factory explorer and returns an object as a result.
 IlrClassTypeValue getType()
          Gets the type argument of the test.
 IlrValue getValue()
          Gets the value argument of the test.
 IlrClass getXOMClassArgument()
          Gets the type argument of the test as an IlrClass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrInstanceOfTest

public IlrInstanceOfTest(IlrValue value,
                         IlrClassTypeValue type)
Constructs an instanceof test using a value and a type value.

Parameters:
value - An expression whose type is to be checked.
type - The type of the expression.
Method Detail

getValue

public final IlrValue getValue()
Gets the value argument of the test.

Returns:
The value argument of the current test.

getType

public final IlrClassTypeValue getType()
Gets the type argument of the test.

Returns:
The type argument of the current test.

getXOMClassArgument

public final IlrClass getXOMClassArgument()
Gets the type argument of the test as an IlrClass.

Returns:
The type argument as an IlrClass.

exploreTest

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

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

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013