public class IlrSelectors
extends java.lang.Object
This class also provides some predefined selectors accessible through static fields.
| Modifier and Type | Field and Description |
|---|---|
static IlrSelector |
AllElements
A selector which does not filter out any element.
|
static IlrSelector |
DynamicClasses
A selector which filters out non dynamic classes (classes for which the
IlrType.getNativeClass() method returns null). |
static IlrSelector |
InterfaceClasses
A selector which filters out non interface classes (classes for which the
IlrClass.isInterface() method returns false). |
static IlrSelector |
StaticMembers
A selector which filters out non static members (members for which the
IlrMember.isStatic method returns false). |
| Constructor and Description |
|---|
IlrSelectors() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Iterator |
dynamicTypes(IlrObjectModel objectModel)
This static method returns an iterator over the dynamic types of the
given object model.
|
static java.util.Iterator |
dynamicTypes(java.util.Iterator typeIter)
This static method filters the elements of the given
iterator.
|
static java.util.Iterator |
Select(java.util.Iterator iter,
IlrSelector selector)
This static method filters the elements of a given iterator.
|
static java.util.Iterator |
Select(java.util.List list,
IlrSelector selector)
This static method filters the elements of a given list.
|
public static final IlrSelector AllElements
public static final IlrSelector StaticMembers
IlrMember.isStatic method returns false).public static final IlrSelector InterfaceClasses
IlrClass.isInterface() method returns false).public static final IlrSelector DynamicClasses
IlrType.getNativeClass() method returns null).public static java.util.Iterator dynamicTypes(java.util.Iterator typeIter)
IlrType.getNativeClass()
method returns null.typeIter - an iterator over types.typeIter
which are not bound to an actual Java class.public static java.util.Iterator dynamicTypes(IlrObjectModel objectModel)
IlrType.getNativeClass() method returns null.objectModel - an object model.objectModel
which are not bound to an actual Java class.public static java.util.Iterator Select(java.util.Iterator iter,
IlrSelector selector)
iter - an iterator over model elementsselector - a selector which will be used to filter the elements
of the iter parameteriter
which satisfy the selectorpublic static java.util.Iterator Select(java.util.List list,
IlrSelector selector)
list - an list of model elementsselector - a selector which will be used to filter the elements
of the list parameterlist
which satisfy the selector© Copyright IBM Corp. 1987, 2024