|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrClassFinder
A class finder is used to find the classes by names during the rule parsing time. An instance of this class holds 2 lists: a list of IlrReflectClass objects, and a list of Strings. The first list represents the classes which are imported explicitly using their fully-qualified names, while the second list represents the imported packages. An implementation of this class should register the imported classes and packages, and must then respond to requests issued from the parser for finding classes using names: simple names or fully-qualified names. Of course, the searching algorithm may use cache to speed up the class finding. Moreover, an implementation of this class should be MT-safe.
Method Summary | |
---|---|
void |
addImportedClass(ilog.rules.factory.IlrReflectClass importedClass)
This method is called by the parser for registering an imported class. |
void |
addImportedPackage(String packageName)
This method is called by the parser for registering an imported package. |
ilog.rules.factory.IlrReflectClass |
findUsingBaseName(String name,
ilog.rules.factory.IlrReflectClass[] other)
Finds a class using a name. |
ilog.rules.factory.IlrReflectClass |
findUsingBaseName(String name,
ilog.rules.factory.IlrReflectClass[] other,
IlrType[] typeParameters)
Finds an instance of a generic definition using a name and type parameters. |
ilog.rules.factory.IlrReflectClass |
findUsingFullName(String name)
Finds a class using a fully-qualified name. |
ilog.rules.factory.IlrReflectClass |
findUsingFullName(String name,
IlrType[] typeParameters)
Finds an instance of a generic definition using a fully-qualified name and type parameters. |
boolean |
matchPackage(String className)
Checks whether for the passed class name matches one of the imported packages. |
void |
removeImportedClass(ilog.rules.factory.IlrReflectClass importedClass)
This method is called to remove an imported class. |
void |
reset()
Resets this object to the initial state. |
Method Detail |
---|
void reset()
void addImportedPackage(String packageName)
boolean matchPackage(String className)
void addImportedClass(ilog.rules.factory.IlrReflectClass importedClass)
void removeImportedClass(ilog.rules.factory.IlrReflectClass importedClass)
ilog.rules.factory.IlrReflectClass findUsingFullName(String name)
ilog.rules.factory.IlrReflectClass findUsingFullName(String name, IlrType[] typeParameters)
ilog.rules.factory.IlrReflectClass findUsingBaseName(String name, ilog.rules.factory.IlrReflectClass[] other)
ilog.rules.factory.IlrReflectClass findUsingBaseName(String name, ilog.rules.factory.IlrReflectClass[] other, IlrType[] typeParameters)
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |