| Modifier and Type | Class and Description |
|---|---|
| public static class | ClassTree.
A "hierarchy" provides the subtypes of all the supertypes of a set of leaf elements, together with the root supertype(s). |
| private static enum | ClassTree.
The kind of hierarchy. |
| private static class | ClassTree.
A map giving the subtypes for each of a collection of type elements. |
| Modifier and Type | Field and Description |
|---|---|
| private final BaseConfiguration | |
| private final Map | hierarchies
The collection of hierarchies, indexed by kind. |
| private final ClassTree. | implementingClasses
Mapping for each interface with classes that implement it. |
| private final Utils |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ClassTree(SortedSet<TypeElement>
a set of classes classesSet, BaseConfiguration The current configuration of the doclet. configuration)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public ClassTree. | Returns: the hierarchy for which the leaf nodes are annotation interfacesReturns the hierarchy for which the leaf nodes are annotation interfaces. |
| private void | buildTree(Iterable<TypeElement>
the type elements typeElements)Generate the hierarchies for the given type elements. |
| public ClassTree. | Returns: the hierarchy for which the leaf nodes are plain classesReturns the hierarchy for which the leaf nodes are plain classes. |
| public ClassTree. | Returns: the hierarchy for which the leaf nodes are enum classesReturns the hierarchy for which the leaf nodes are enum classes. |
| public ClassTree. | |
| public SortedSet | implementingClasses(TypeElement
interface whose implementing-classes set is required. typeElement)Return the set of classes which implement the interface passed. |
| public ClassTree. | Returns: the hierarchy for which the leaf nodes are plain interfacesReturns the hierarchy for which the leaf nodes are plain interfaces. |
| private void | processInterface(TypeElement
Interface under consideration. typeElement)For the interface passed get the interfaces which it extends, and then put this interface in the subinterface set of those interfaces. |
| private void | processType(TypeElement
for which the hierarchy is to be generated typeElement, ClassTree.the hierarchy hierarchyAdds details for a type element into a given hierarchy. |
| public ClassTree. | Returns: the hierarchy for which the leaf nodes are record classesReturns the hierarchy for which the leaf nodes are record classes. |
| public SortedSet | subClasses(TypeElement
class whose subclass set is required. typeElement)Return the subclass set for the class passed. |
| public SortedSet | subInterfaces(TypeElement
interface whose subinterface set is required. typeElement)Return the subinterface set for the interface passed. |
| configuration | back to summary |
|---|---|
| private final BaseConfiguration configuration | |
| hierarchies | back to summary |
|---|---|
| private final Map<ClassTree. The collection of hierarchies, indexed by kind. | |
| implementingClasses | back to summary |
|---|---|
| private final ClassTree. Mapping for each interface with classes that implement it. | |
| utils | back to summary |
|---|---|
| private final Utils utils | |
| ClassTree | back to summary |
|---|---|
| public ClassTree(BaseConfiguration configuration) Constructor. Build the tree for all the included type elements.
| |
| ClassTree | back to summary |
|---|---|
| public ClassTree(SortedSet<TypeElement> classesSet, BaseConfiguration configuration) Constructor. Build the tree for the given collection of classes.
| |
| annotationInterfaces | back to summary |
|---|---|
| public ClassTree. Returns the hierarchy for which the leaf nodes are annotation interfaces. | |
| buildTree | back to summary |
|---|---|
| private void buildTree(Iterable<TypeElement> typeElements) Generate the hierarchies for the given type elements.
| |
| classes | back to summary |
|---|---|
| public ClassTree. Returns the hierarchy for which the leaf nodes are plain classes. | |
| enumClasses | back to summary |
|---|---|
| public ClassTree. Returns the hierarchy for which the leaf nodes are enum classes. | |
| hierarchy | back to summary |
|---|---|
| public ClassTree. | |
| implementingClasses | back to summary |
|---|---|
| public SortedSet Return the set of classes which implement the interface passed.
| |
| interfaces | back to summary |
|---|---|
| public ClassTree. Returns the hierarchy for which the leaf nodes are plain interfaces. | |
| processInterface | back to summary |
|---|---|
| private void processInterface(TypeElement typeElement) For the interface passed get the interfaces which it extends, and then put this interface in the subinterface set of those interfaces. Do it recursively. If an interface doesn't have superinterface just attach that interface in the set of all the baseInterfaces.
| |
| processType | back to summary |
|---|---|
| private void processType(TypeElement typeElement, ClassTree. Adds details for a type element into a given hierarchy. The subtypes are updated for the transitive closure of all supertypes of this type element. If this type element has no superclass or superinterfaces, it is marked as a root.
| |
| recordClasses | back to summary |
|---|---|
| public ClassTree. Returns the hierarchy for which the leaf nodes are record classes. | |
| subClasses | back to summary |
|---|---|
| public SortedSet Return the subclass set for the class passed.
| |
| subInterfaces | back to summary |
|---|---|
| public SortedSet Return the subinterface set for the interface passed.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private final SortedSet | |
| private final ClassTree. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public SortedSet | Returns: the set of all subtypes of the given type element, or an empty set if there are nonethe type element typeElement)Returns the set of all subtypes of the given type element, or an empty set if there are none. |
| public SortedSet | |
| public SortedSet | Returns: the immediate subtypes of the given type element, or an empty set if there are nonethe type element typeElement)Returns the immediate subtypes of the given type element, or an empty set if there are none. |
| comparator | back to summary |
|---|---|
| private final Comparator<Element> comparator | |
| roots | back to summary |
|---|---|
| private final SortedSet<TypeElement> roots | |
| subtypes | back to summary |
|---|---|
| private final ClassTree. | |
| Hierarchy | back to summary |
|---|---|
| pack-priv Hierarchy(Comparator<Element> comparator) | |
| allSubtypes | back to summary |
|---|---|
| public SortedSet Returns the set of all subtypes of the given type element, or an empty set if there are none. The set of all subtypes is the transitive closure of the immediate subtypes of the given type element.
| |
| roots | back to summary |
|---|---|
| public SortedSet Returns the roots of the hierarchy.
Each root is a class or interface with no superclass or superinterfaces.
If the hierarchy just contains classes, the root will be
| |
| subtypes | back to summary |
|---|---|
| public SortedSet Returns the immediate subtypes of the given type element, or an empty set if there are none.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassTree. | |
| public static final ClassTree. | |
| public static final ClassTree. | |
| public static final ClassTree. | |
| public static final ClassTree. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ClassTree. | |
| public static ClassTree. |
| ANNOTATION_INTERFACES | back to summary |
|---|---|
| public static final ClassTree. | |
| CLASSES | back to summary |
|---|---|
| public static final ClassTree. | |
| ENUM_CLASSES | back to summary |
|---|---|
| public static final ClassTree. | |
| INTERFACES | back to summary |
|---|---|
| public static final ClassTree. | |
| RECORD_CLASSES | back to summary |
|---|---|
| public static final ClassTree. | |
| HierarchyKind | back to summary |
|---|---|
| private HierarchyKind() | |
| valueOf | back to summary |
|---|---|
| public static ClassTree. | |
| values | back to summary |
|---|---|
| public static ClassTree. | |
addSubtype.
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator |
| Access | Constructor and Description |
|---|---|
| pack-priv | SubtypeMap(Comparator<Element>
the comparator comparator)Creates a map to provide the subtypes of a type element, sorted according to a given comparator. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | Returns: true if this set did not already contain the specified elementthe type element typeElement, TypeElement the subtype subtype)Adds a subtype into the set of subtypes for a type element |
| pack-priv SortedSet | Returns: the subtypes for a type element, or an empty set if there are nonethe type element typeElement)Returns the subtypes for a type element, or an empty set if there are none. |
| comparator | back to summary |
|---|---|
| private final Comparator<Element> comparator | |
| SubtypeMap | back to summary |
|---|---|
| pack-priv SubtypeMap(Comparator<Element> comparator) Creates a map to provide the subtypes of a type element, sorted according to a given comparator. An alternate implementation would be to store the subtypes unsorted, and to lazily sort them when needed, such as when generating documentation.
| |
| addSubtype | back to summary |
|---|---|
| pack-priv boolean addSubtype(TypeElement typeElement, TypeElement subtype) Adds a subtype into the set of subtypes for a type element
| |
| getSubtypes | back to summary |
|---|---|
| pack-priv SortedSet Returns the subtypes for a type element, or an empty set if there are none.
| |