|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrClassDriver
An interface responsible for providing the execution policy for a dynamic class. A class driver is attached to a root Java class and handles the instances of Java objects starting at the root class. An execution policy for a class is a set of Java methods called for creating instances of the class, get and set the fields and to invoke the methods. See the Rule Engine User's Manual for more details.
Nested Class Summary | |
---|---|
static interface |
IlrClassDriver.ClassTester
Interface for testing if an object is an instance of some class. |
static interface |
IlrClassDriver.Constructor
Interface for invoking some constructor with some given argument values. |
static interface |
IlrClassDriver.Invoker
Interface for invoking some method with an object and the current argument values. |
static interface |
IlrClassDriver.Reader
Interface for getting some field of a given object. |
static interface |
IlrClassDriver.UnknownChecker
Interface for testing whether a field has been assigned a value. |
static interface |
IlrClassDriver.Writer
Interface for setting a value to some field of a given object. |
Method Summary | |
---|---|
IlrClassDriver.Constructor |
getConstructor(IlrConstructor constructor)
Gets a constructor for the constructor passed as argument. |
IlrClassDriver.Invoker |
getInvoker(IlrMethod method)
Gets an invoker for the method passed as argument. |
IlrClassDriver.Reader |
getReader(IlrAttribute attribute)
Gets a reader for the passed attribute. |
Class |
getRootClass()
Gets the root class of this class driver. |
IlrClassDriver.ClassTester |
getTester(IlrClass aclass)
Gets the tester for the class passed as argument. |
IlrClassDriver.UnknownChecker |
getUnknownChecker(IlrAttribute attribute)
Gets a checker for the passed attribute. |
IlrClassDriver.Writer |
getWriter(IlrAttribute attribute)
Gets a writer for the passed attribute. |
IlrClass |
getXOMClass(Object object)
Gets the virtual class, that is an instance of IlrClass for
a given object. |
Method Detail |
---|
Class getRootClass()
IlrClass getXOMClass(Object object)
IlrClass
for
a given object. If the class driver recognizes the object, it will return
its virtual class. If it does not recognize the passed
object, it should return null
.
object
- An object. This parameter is never null
.
IlrClass
or null
.IlrClassDriver.ClassTester getTester(IlrClass aclass)
null
, the rule parsing will fail.
aclass
- The dynamic class for which a tester is requested.
IlrClassDriver.Reader getReader(IlrAttribute attribute)
null
is returned, the rule parsing will
fail.
attribute
- The dynamic attribute.
IlrClassDriver.Writer getWriter(IlrAttribute attribute)
null
is returned, the rule
parsing will fail.
attribute
- The dynamic attribute.
IlrClassDriver.UnknownChecker getUnknownChecker(IlrAttribute attribute)
null
is
returned, the rule parsing will fail.
attribute
- The dynamic attribute.
IlrClassDriver.Invoker getInvoker(IlrMethod method)
null
is
returned, the rule parsing will fail.
method
- The dynamic method.
IlrClassDriver.Constructor getConstructor(IlrConstructor constructor)
null
is
returned, the rule parsing will fail.
constructor
- The dynamic constructor.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |