|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrClass
This interface is used to represent classes and interfaces in an object model.
Nested Class Summary | |
---|---|
static interface |
IlrClass.IlrGenericClassInfo
This interface provides the information for generic classes and instantiations of those generic classes |
Field Summary | |
---|---|
static String |
CLASS_KIND_PROPERTY
|
static String |
RAW_CLASS_KIND
|
Method Summary | |
---|---|
Iterator |
allAttributes()
Returns an iterator over the the attributes declared in this class along with all attributes inherited from superclasses. |
Iterator |
allComponentProperties()
Returns an iterator over the the component properties declared in this class along with all component properties inherited from superclasses. |
Iterator |
allIndexedComponentProperties()
Returns an iterator over the the indexed component properties declared in this class along with all indexed component properties inherited from superclasses. |
Iterator |
allInheritedAttributes()
Returns an iterator over the attributes inherited from superclasses. |
Iterator |
allInheritedMembers()
Returns an iterator over all inherited members (attributes, constructors and methods) of this class. |
Iterator |
allInheritedMethods()
Returns an iterator over the methods inherited from superclasses. |
Iterator |
allInterfaces()
Returns an iterator over the transitive closure of superinterfaces of this class. |
Iterator |
allMembers()
Returns an iterator over all declared and inherited members (attributes, constructors and methods) of this class. |
Iterator |
allMethods()
Returns an iterator over the the methods declared in this class along with all methods inherited from superclasses. |
Iterator |
allSuperclasses()
Returns an iterator over the transitive closure of superclasses and superinterfaces of this class. |
IlrAttribute |
getAttribute(String name)
Searches for an attribute having a given name. |
List |
getAttributes()
Returns the list of attributes in this class. |
List |
getComponentProperties()
Returns the list of component properties in this class. |
IlrComponentProperty |
getComponentProperty(String name)
Searches for a component property having a given name. |
IlrConstructor |
getConstructor(IlrType... arguments)
Searches for a constructor having given parameter types. |
List |
getConstructors()
Returns the list of constructors in this class. |
IlrClass |
getFirstSuperclass()
Returns the fist class in the list of superclasses of this class which is not an interface and null if there is
no such class. |
IlrClass.IlrGenericClassInfo |
getGenericInfo()
Returns the generic information about this class, or null if the class is neither a generic
nor an instantiation of a generic class. |
List |
getIndexedComponentProperties()
Returns the list of indexed component properties in this class. |
IlrIndexedComponentProperty |
getIndexedComponentProperty(String name,
IlrType... arguments)
Searches for an indexed component property having a given name and given parameter types. |
IlrMethod |
getMethod(String name,
IlrType... arguments)
Searches for a method having a given name and given parameter types. |
IlrMethod |
getMethod(String name,
List arguments)
Searches for a method with a given name and given parameter types. |
List |
getMethods()
Returns the list of methods in this class. |
List |
getMethods(String name)
Returns the list of methods of a certain name. |
List |
getNestedClasses()
Returns the list of classes nested in this class. |
List |
getSuperclasses()
Returns the list of superclasses of this class. |
Iterator |
interfaces()
Returns an iterator over the direct superinterfaces of this class. |
boolean |
isAbstract()
Returns true if the class is abstract. |
boolean |
isFinal()
Returns true if the class is final. |
boolean |
isInterface()
Returns true if the class is an interface. |
boolean |
isPrivate()
Returns true if the class is private. |
boolean |
isProtected()
Returns true if the class is protected. |
boolean |
isPublic()
Returns true if the class is public. |
boolean |
isStatic()
Returns true if the class is static. |
boolean |
isSubclassOf(IlrClass otherClass)
Tests whether a class is a direct or indirect subclass of another class. |
Iterator |
members()
Returns an iterator over all declared members (attributes, constructors and methods) of this class. |
boolean |
visit(IlrObjectModel.Visitor visitor)
Deprecated. Use IlrVisitor instead. |
Methods inherited from interface ilog.rules.bom.IlrType |
---|
detach, getArrayClass, getArrayType, getComponentType, getDomain, getFullyQualifiedRawName, getJavaClass, getNativeClass, getRawName, isArray, isClass, isEnum, isMissingReference, isPrimitiveType, isTypeVariable, isWildcardType |
Methods inherited from interface ilog.rules.bom.IlrNamespace |
---|
getClass, getClasses, getGenericClass, getNamespace, modelElementIterator |
Methods inherited from interface ilog.rules.bom.IlrModelElement |
---|
getEnclosingNamespace, getFullyQualifiedName, getName, getObjectModel |
Methods inherited from interface ilog.rules.bom.IlrProperties |
---|
isPropertyPersistent, setPersistentProperty, setPersistentProperty |
Methods inherited from interface ilog.rules.bom.IlrTransientProperties |
---|
getPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValue |
Field Detail |
---|
static final String CLASS_KIND_PROPERTY
static final String RAW_CLASS_KIND
Method Detail |
---|
IlrClass.IlrGenericClassInfo getGenericInfo()
null
if the class is neither a generic
nor an instantiation of a generic class.
null
.boolean isInterface()
true
if the class is an interface.
boolean isStatic()
true
if the class is static.
boolean isPublic()
true
if the class is public.
boolean isPrivate()
true
if the class is private.
boolean isProtected()
true
if the class is protected.
boolean isFinal()
true
if the class is final.
boolean isAbstract()
true
if the class is abstract.
List getSuperclasses()
null
or an
empty list.
List getNestedClasses()
null
or an
empty list.
List getConstructors()
null
or an
empty list.
List getMethods()
null
or an
empty list.
IlrMethod
List getMethods(String name)
null
or an
empty list.
IlrMethod
List getAttributes()
null
or an
empty list.
IlrAttribute
List getComponentProperties()
null
or an
empty list.
IlrComponentProperty
List getIndexedComponentProperties()
null
or an
empty list.
IlrIndexedComponentProperty
boolean visit(IlrObjectModel.Visitor visitor)
IlrVisitor
instead.
visitXXX
methods for each model
element (nested class, method, attribute) contained in this class. If a
call to one of the visitor's visitXXX
methods returns false
then this method returns immediately the value false
. Otherwise
true
is returned after all elements have been visited.
visitor
- a visitor
true
if the class content was entirely visited.boolean isSubclassOf(IlrClass otherClass)
otherClass
- an IlrClass
true
if this class is either directly or transitively
a subclass of otherClass
.IlrClass getFirstSuperclass()
null
if there is
no such class.
Iterator allSuperclasses()
Iterator allMethods()
Iterator allAttributes()
Iterator allComponentProperties()
Iterator allIndexedComponentProperties()
Iterator interfaces()
Iterator allInterfaces()
Iterator allInheritedMethods()
Iterator allInheritedAttributes()
Iterator members()
Iterator allMembers()
Iterator allInheritedMembers()
IlrConstructor getConstructor(IlrType... arguments)
arguments
- an array of types
IlrMethod getMethod(String name, IlrType... arguments)
name
- a character string.arguments
- an array of types
IlrMethod getMethod(String name, List arguments)
name
- A character string.arguments
- A list of IlrType
s or IlrParameter
s.
IlrAttribute getAttribute(String name)
name
- a character string.
IlrComponentProperty getComponentProperty(String name)
name
- a character string.
IlrIndexedComponentProperty getIndexedComponentProperty(String name, IlrType... arguments)
name
- a character string.arguments
- an array of types
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |