Rule Execution Server API

ilog.rules.factory
Class IlrConstantValue

java.lang.Object
  extended by ilog.rules.factory.IlrValue
      extended by ilog.rules.factory.IlrConstantValue
All Implemented Interfaces:
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 Summary
IlrConstantValue(IlrReflect reflect, byte value)
          Constructs a constant value using a byte value.
IlrConstantValue(IlrReflect reflect, char value)
          Constructs a constant value using a char value.
IlrConstantValue(IlrReflect reflect, double value)
          Constructs a constant value using a double value.
IlrConstantValue(IlrReflect reflect, float value)
          Constructs a constant value using a float value.
IlrConstantValue(IlrReflect reflect, int value)
          Constructs a constant value using an int value.
IlrConstantValue(IlrReflect reflect, long value)
          Constructs a constant value using a long value.
IlrConstantValue(IlrReflect reflect, Object value)
          Constructs a constant value using any object.
IlrConstantValue(IlrReflect reflect, Object value, Class type)
          Constructs a constant value using any object and a class.
IlrConstantValue(IlrReflect reflect, short value)
          Constructs a constant value using a short value.
IlrConstantValue(IlrReflect reflect, String value)
          Constructs a constant value using a String value.
 
Method Summary
 Object exploreValue(IlrFactoryExplorer explorer)
          Explores this constant value using a factory explorer and returns an object as a result.
 Object getValue()
          Gets the value represented by this constant value.
 
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, toString, wait, wait, wait
 

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,
                        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,
                        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,
                        Object value,
                        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 Object getValue()
Gets the value represented by this constant value.

Returns:
The value represented by this constant value.

exploreValue

public 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.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013