This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | allClasses
Stores all classes for each package |
| private final Comparator | |
| private final BaseConfiguration | |
| private final SortedSet | packageSet
Stores the set of packages that the classes specified on the command line belong to. |
| private final Utils |
| Access | Constructor and Description |
|---|---|
| public | TypeElementCatalog(Iterable<TypeElement>
the array of TypeElements to catalog typeElements, BaseConfiguration config)Construct a new TypeElementCatalog. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addTypeElement(TypeElement
the TypeElement to add to the catalog. typeElement)Add the given class to the catalog. |
| private void | addTypeElement(TypeElement
the class to add to the catalog. typeElement, Map<PackageElement, SortedSet<TypeElement>> the Map to add the TypeElement to. map)Add the given class to the given map. |
| public SortedSet | allClasses(PackageElement
the package to return the classes for. packageElement)Return all of the classes specified on the command-line that belong to the given package. |
| public SortedSet | allUnnamedClasses()
Return all of the classes specified on the command-line that belong to the unnamed package. |
| public SortedSet |
| allClasses | back to summary |
|---|---|
| private final Map<PackageElement, SortedSet<TypeElement>> allClasses Stores all classes for each package | |
| comparator | back to summary |
|---|---|
| private final Comparator<Element> comparator | |
| configuration | back to summary |
|---|---|
| private final BaseConfiguration configuration | |
| packageSet | back to summary |
|---|---|
| private final SortedSet<PackageElement> packageSet Stores the set of packages that the classes specified on the command line belong to. Note that the default package is "". | |
| utils | back to summary |
|---|---|
| private final Utils utils | |
| TypeElementCatalog | back to summary |
|---|---|
| public TypeElementCatalog(Iterable<TypeElement> typeElements, BaseConfiguration config) Construct a new TypeElementCatalog.
| |
| TypeElementCatalog | back to summary |
|---|---|
| public TypeElementCatalog(BaseConfiguration config) Construct a new TypeElementCatalog. | |
| addTypeElement | back to summary |
|---|---|
| public final void addTypeElement(TypeElement typeElement) Add the given class to the catalog.
| |
| addTypeElement | back to summary |
|---|---|
| private void addTypeElement(TypeElement typeElement, Map<PackageElement, SortedSet<TypeElement>> map) Add the given class to the given map.
| |
| allClasses | back to summary |
|---|---|
| public SortedSet Return all of the classes specified on the command-line that belong to the given package.
| |
| allUnnamedClasses | back to summary |
|---|---|
| public SortedSet Return all of the classes specified on the command-line that belong to the unnamed package. | |
| packages | back to summary |
|---|---|
| public SortedSet Return a SortedSet of packages that this catalog stores. | |