ilog.rules.factory

Class IlrInstanceOfTest

  • All Implemented Interfaces:
    ilog.rules.factory.IlrSourceElement, IlrTest, java.io.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
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.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 java.lang.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.

© Copyright IBM Corp. 1987, 2017