Rule Execution Server API

ilog.rules.factory
Interface IlrAssignable

All Known Implementing Classes:
IlrArrayElement, IlrFieldValue, IlrStaticFieldValue, IlrVariable

public interface IlrAssignable

This interface represents an assignable expression of the rule language. An assignable expression is one which can be used as the left part of an assignment expression.


Method Summary
 Object exploreAssignable(IlrFactoryExplorer explorer)
          Explores the assignable expression and returns an object as result.
 Class getType()
          Deprecated. Replaced by IlrValue.getXOMType().
 boolean isAssignableFrom(IlrValue value)
          Tests whether the assignable expression can be assigned the value passed as argument.
 

Method Detail

getType

Class getType()
Deprecated. Replaced by IlrValue.getXOMType().

Gets the type of the assignable expression. Note that with the Open Object Model, this method returns null if the assignable expression has a dynamic type.

Returns:
The class type of the assignable expression.

isAssignableFrom

boolean isAssignableFrom(IlrValue value)
Tests whether the assignable expression can be assigned the value passed as argument. In other words, this method tests whether a particular assignment is authorized. The implementation of this method must be compliant with the Java Language Specification (5.2).

Parameters:
value - The value assigned to the expression.
Returns:
true if the assignable expression can be assigned the value passed as argument.

exploreAssignable

Object exploreAssignable(IlrFactoryExplorer explorer)
Explores the assignable expression and returns an object as 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