public interface IlrClass extends IlrType, IlrNamespace
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IlrClass.IlrGenericClassInfo
This interface provides the information for generic classes
and instantiations of those generic classes
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_KIND_PROPERTY |
static java.lang.String |
RAW_CLASS_KIND |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator |
allAttributes()
Returns an iterator over the the attributes declared in this class
along with all attributes inherited from superclasses.
|
java.util.Iterator |
allComponentProperties()
Returns an iterator over the the component properties declared in this class
along with all component properties inherited from superclasses.
|
java.util.Iterator |
allIndexedComponentProperties()
Returns an iterator over the the indexed component properties declared in this class
along with all indexed component properties inherited from superclasses.
|
java.util.Iterator |
allInheritedAttributes()
Returns an iterator over the attributes inherited from superclasses.
|
java.util.Iterator |
allInheritedMembers()
Returns an iterator over all inherited members (attributes,
constructors and methods) of this class.
|
java.util.Iterator |
allInheritedMethods()
Returns an iterator over the methods inherited from superclasses.
|
java.util.Iterator |
allInterfaces()
Returns an iterator over the transitive closure of superinterfaces of
this class.
|
java.util.Iterator |
allMembers()
Returns an iterator over all declared and inherited members (attributes,
constructors and methods) of this class.
|
java.util.Iterator |
allMethods()
Returns an iterator over the the methods declared in this class
along with all methods inherited from superclasses.
|
java.util.Iterator |
allSuperclasses()
Returns an iterator over the transitive closure of superclasses
and superinterfaces of this class.
|
IlrAttribute |
getAttribute(java.lang.String name)
Searches for an attribute having a given name.
|
java.util.List |
getAttributes()
Returns the list of attributes in this class.
|
java.util.List |
getComponentProperties()
Returns the list of component properties in this class.
|
IlrComponentProperty |
getComponentProperty(java.lang.String name)
Searches for a component property having a given name.
|
IlrConstructor |
getConstructor(IlrType... arguments)
Searches for a constructor having given parameter types.
|
java.util.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. |
java.util.List |
getIndexedComponentProperties()
Returns the list of indexed component properties in this class.
|
IlrIndexedComponentProperty |
getIndexedComponentProperty(java.lang.String name,
IlrType... arguments)
Searches for an indexed component property having a given name and given parameter types.
|
IlrMethod |
getMethod(java.lang.String name,
IlrType... arguments)
Searches for a method having a given name and given parameter types.
|
IlrMethod |
getMethod(java.lang.String name,
java.util.List arguments)
Searches for a method with a given name and given parameter types.
|
java.util.List |
getMethods()
Returns the list of methods in this class.
|
java.util.List |
getMethods(java.lang.String name)
Returns the list of methods of a certain name.
|
java.util.List |
getNestedClasses()
Returns the list of classes nested in this class.
|
java.util.List |
getSuperclasses()
Returns the list of superclasses of this class.
|
java.util.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.
|
java.util.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. |
detach, getArrayClass, getArrayType, getComponentType, getDomain, getFullyQualifiedRawName, getJavaClass, getNativeClass, getRawName, isArray, isClass, isEnum, isMissingReference, isPrimitiveType, isTypeVariable, isWildcardTypegetClass, getClasses, getGenericClass, getNamespace, modelElementIteratorgetEnclosingNamespace, getFullyQualifiedName, getName, getObjectModelisPropertyPersistent, setPersistentProperty, setPersistentPropertygetPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValuestatic final java.lang.String CLASS_KIND_PROPERTY
static final java.lang.String RAW_CLASS_KIND
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.java.util.List getSuperclasses()
null or an
empty list.java.util.List getNestedClasses()
null or an
empty list.java.util.List getConstructors()
null or an
empty list.java.util.List getMethods()
null or an
empty list.IlrMethodjava.util.List getMethods(java.lang.String name)
null or an
empty list.IlrMethodjava.util.List getAttributes()
null or an
empty list.IlrAttributejava.util.List getComponentProperties()
null or an
empty list.IlrComponentPropertyjava.util.List getIndexedComponentProperties()
null or an
empty list.IlrIndexedComponentPropertyboolean 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 visitortrue if the class content was entirely visited.boolean isSubclassOf(IlrClass otherClass)
otherClass - an IlrClasstrue if this class is either directly or transitively
a subclass of otherClass.IlrClass getFirstSuperclass()
null if there is
no such class.java.util.Iterator allSuperclasses()
java.util.Iterator allMethods()
java.util.Iterator allAttributes()
java.util.Iterator allComponentProperties()
java.util.Iterator allIndexedComponentProperties()
java.util.Iterator interfaces()
java.util.Iterator allInterfaces()
java.util.Iterator allInheritedMethods()
java.util.Iterator allInheritedAttributes()
java.util.Iterator members()
java.util.Iterator allMembers()
java.util.Iterator allInheritedMembers()
IlrConstructor getConstructor(IlrType... arguments)
arguments - an array of typesIlrMethod getMethod(java.lang.String name, IlrType... arguments)
name - a character string.arguments - an array of typesIlrMethod getMethod(java.lang.String name, java.util.List arguments)
name - A character string.arguments - A list of IlrTypes or IlrParameters.IlrAttribute getAttribute(java.lang.String name)
name - a character string.IlrComponentProperty getComponentProperty(java.lang.String name)
name - a character string.IlrIndexedComponentProperty getIndexedComponentProperty(java.lang.String name, IlrType... arguments)
name - a character string.arguments - an array of types© Copyright IBM Corp. 1987, 2024