ilog.rules.factory

Class IlrConstantValue

  • All Implemented Interfaces:
    java.io.Serializable


    public class IlrConstantValue
    extends IlrValue
    This class represents a constant value 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:
    IlrFactory, Serialized Form
    • Constructor Detail

      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        char value)
        Constructs a constant value using a char value.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        byte value)
        Constructs a constant value using a byte value.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        short value)
        Constructs a constant value using a short value.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        int value)
        Constructs a constant value using an int value.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        long value)
        Constructs a constant value using a long value.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        float value)
        Constructs a constant value using a float value.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        double value)
        Constructs a constant value using a double value.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        java.lang.String value)
        Constructs a constant value using a String value.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        java.lang.Object value)
        Constructs a constant value using any object. The type of this value is the class of the object.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
      • IlrConstantValue

        public IlrConstantValue(IlrReflect reflect,
                        java.lang.Object value,
                        java.lang.Class type)
        Constructs a constant value using any object and a class.
        Parameters:
        reflect - A reflect.
        value - The value of this constant value.
        type - The class type of this constant value.
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Gets the value represented by this constant value.
        Returns:
        The value represented by this constant value.
      • exploreValue

        public java.lang.Object exploreValue(IlrFactoryExplorer explorer)
        Explores this constant 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.

© Copyright IBM Corp. 1987, 2017