Rule Execution Server API

ilog.rules.factory
Class IlrNewArrayInstanceValue

java.lang.Object
  extended by ilog.rules.factory.IlrValue
      extended by ilog.rules.factory.IlrNaryValue
          extended by ilog.rules.factory.IlrNewArrayInstanceValue
All Implemented Interfaces:
Serializable

public class IlrNewArrayInstanceValue
extends IlrNaryValue

This class represents an invocation of an array constructor in the rule language, that is, an array object allocation.

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
IlrNewArrayInstanceValue(IlrReflect reflect)
          Constructs an object allocation expression.
IlrNewArrayInstanceValue(IlrReflect reflect, Class clazz, IlrValue[] arguments)
          Constructs an object allocation expression on a class and using an argument list.
IlrNewArrayInstanceValue(IlrReflect reflect, String className, IlrValue[] arguments)
          Constructs an object allocation expression using a class name and an argument list.
 
Method Summary
 Object exploreValue(IlrFactoryExplorer explorer)
          Explores this value using a factory explorer and returns an object as a result.
 String getClassName()
          Gets the fully qualified name of the allocated object's class.
 String getShortClassName()
          Gets the short name of the allocated object's class.
 IlrClass getXOMComponentType()
          Returns the component type of the array.
 String toString()
           
 
Methods inherited from class ilog.rules.factory.IlrNaryValue
addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, enumerateArguments, getArgumentCount, getArguments, getXOMArgumentTypes
 
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, wait, wait, wait
 

Constructor Detail

IlrNewArrayInstanceValue

public IlrNewArrayInstanceValue(IlrReflect reflect)
Constructs an object allocation expression.

Parameters:
reflect - A reflect.

IlrNewArrayInstanceValue

public IlrNewArrayInstanceValue(IlrReflect reflect,
                                Class clazz,
                                IlrValue[] arguments)
Constructs an object allocation expression on a class and using an argument list.

Parameters:
reflect - A reflect.
clazz - The class to be instantiated.
arguments - The argument list of the constructor.

IlrNewArrayInstanceValue

public IlrNewArrayInstanceValue(IlrReflect reflect,
                                String className,
                                IlrValue[] arguments)
Constructs an object allocation expression using a class name and an argument list.

Parameters:
reflect - A reflect.
className - The name of the class to be instantiated.
arguments - The argument list of the constructor.
Method Detail

getXOMComponentType

public final IlrClass getXOMComponentType()
Returns the component type of the array.

Returns:
The component type.

getClassName

public String getClassName()
Gets the fully qualified name of the allocated object's class.

Returns:
The fully qualified name of the allocated object's class.

getShortClassName

public String getShortClassName()
Gets the short name of the allocated object's class.

Returns:
The short name of the allocated object's class.

exploreValue

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

toString

public String toString()
Overrides:
toString in class Object

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013