public interface IlrPackage extends IlrNamespace, IlrVisitable
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator |
allClasses()
Returns an iterator over all classes contained in this package
including, recursively, the classes contained in nested packages.
|
java.util.Iterator |
allEnums()
Returns an iterator over all enumerated types contained in this package
including, recursively, the enumerated types contained in nested packages.
|
java.util.Iterator |
allPackages()
Returns an iterator over all packages contained in this package
including, recursively, the packages they contain etc.
|
IlrClass |
getClass(java.lang.String name)
Searches the package for a class having the given name.
|
java.util.List |
getClasses()
Returns the list of the classes contained in this package.
|
IlrPackage |
getEnclosingPackage()
Returns the package in which this package is contained or
null if this package is the default package. |
IlrEnum |
getEnum(java.lang.String name)
Searches the package for an enumerated type having the given name.
|
java.util.List |
getEnums()
Returns the list of the enumerated types contained in this package.
|
IlrPackage |
getNestedPackage(java.lang.String name)
Searches for a nested package having the given name.
|
java.util.List |
getNestedPackages()
Returns the list of the packages nested in this package.
|
boolean |
isDefaultPackage()
Returns
true if this package is the default package of
an object model |
java.util.Iterator |
types()
Returns an iterator over all types defined in this package.
|
boolean |
visit(IlrObjectModel.Visitor visitor)
Deprecated.
Use
IlrVisitor instead. |
getGenericClass, getNamespace, modelElementIteratorgetEnclosingNamespace, getFullyQualifiedName, getName, getObjectModelisPropertyPersistent, setPersistentProperty, setPersistentPropertygetPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValueacceptboolean isDefaultPackage()
true if this package is the default package of
an object modelIlrPackage getEnclosingPackage()
null if this package is the default package.boolean visit(IlrObjectModel.Visitor visitor)
IlrVisitor instead.visitXXX methods for the classes
and enumerated types contained in this package and, recursively, in those
contained in nested packages. 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 package was entirely visited.java.util.List getNestedPackages()
null or an
empty list.java.util.List getEnums()
null or an empty list.java.util.List getClasses()
null or an empty list.getClasses in interface IlrNamespacejava.util.Iterator types()
IlrPackage getNestedPackage(java.lang.String name)
null is
returned.IlrEnum getEnum(java.lang.String name)
null is
returned.IlrClass getClass(java.lang.String name)
null is
returned.getClass in interface IlrNamespacejava.util.Iterator allPackages()
java.util.Iterator allEnums()
java.util.Iterator allClasses()
© Copyright IBM Corp. 1987, 2017