| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static record | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassHierarchyResolver | |
| private final ClassHierarchyResolver |
| Access | Constructor and Description |
|---|---|
| public | ClassHierarchyImpl(ClassHierarchyResolver
ClassHierarchyInfoResolver instancePublic constructor of |
| Modifier and Type | Method and Description |
|---|---|
| public ClassDesc | Returns: common ancestor class name ornull if it could not be identifiedfirst class descriptor symbol1, ClassDesc second class descriptor symbol2)Method resolving common ancestor of two classes |
| public boolean | |
| public boolean | Returns: true if the given class name represents an interfaceclass path in form of <package>/<class_name>.class classDesc)Method answering question whether given class is an interface, responding without the class stream resolution and parsing is preferred in case the interface status is known from previous activities. |
| private ClassHierarchyImpl. |
| DEFAULT_RESOLVER | back to summary |
|---|---|
| public static final ClassHierarchyResolver DEFAULT_RESOLVER | |
| resolver | back to summary |
|---|---|
| private final ClassHierarchyResolver resolver | |
| ClassHierarchyImpl | back to summary |
|---|---|
| public ClassHierarchyImpl(ClassHierarchyResolver classHierarchyResolver) Public constructor of
| |
| commonAncestor | back to summary |
|---|---|
| public ClassDesc commonAncestor(ClassDesc symbol1, ClassDesc symbol2) Method resolving common ancestor of two classes | |
| isAssignableFrom | back to summary |
|---|---|
| public boolean isAssignableFrom(ClassDesc thisClass, ClassDesc fromClass) | |
| isInterface | back to summary |
|---|---|
| public boolean isInterface(ClassDesc classDesc) Method answering question whether given class is an interface, responding without the class stream resolution and parsing is preferred in case the interface status is known from previous activities.
| |
| resolve | back to summary |
|---|---|
| private ClassHierarchyImpl. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private static final ClassHierarchyResolver. | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | CachedClassHierarchyResolver(ClassHierarchyResolver delegate, Map<ClassDesc, ClassHierarchyResolver.
|
| Modifier and Type | Method and Description |
|---|---|
| public ClassHierarchyResolver. | getClassInfo(ClassDesc classDesc)
Implements java. Returns the |
| delegateFunction | back to summary |
|---|---|
| private final Function<ClassDesc, ClassHierarchyResolver. | |
| NOPE | back to summary |
|---|---|
| private static final ClassHierarchyResolver. | |
| resolvedCache | back to summary |
|---|---|
| private final Map<ClassDesc, ClassHierarchyResolver. | |
| CachedClassHierarchyResolver | back to summary |
|---|---|
| public CachedClassHierarchyResolver(ClassHierarchyResolver delegate, Map<ClassDesc, ClassHierarchyResolver. | |
| getClassInfo | back to summary |
|---|---|
| public ClassHierarchyResolver. Implements java. Doc from java. Returns the This method is called by the Class-File API to obtain the hierarchy information of a class or interface; users should not call this method. The symbolic descriptor passed by the Class-File API always represents a class or interface.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | isInterface
Record Component accessed by isInterface(). |
| pack-priv static final ClassHierarchyResolver. | |
| private final ClassDesc | superClass
Record Component accessed by superClass(). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public boolean | |
| public ClassDesc | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| isInterface | back to summary |
|---|---|
| private final boolean isInterface Record Component accessed by isInterface(). | |
| OBJECT_INFO | back to summary |
|---|---|
| pack-priv static final ClassHierarchyResolver. | |
| superClass | back to summary |
|---|---|
| private final ClassDesc superClass Record Component accessed by superClass(). | |
| ClassHierarchyInfoImpl | back to summary |
|---|---|
| public ClassHierarchyInfoImpl(ClassDesc superClass, boolean isInterface) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| isInterface | back to summary |
|---|---|
| public boolean isInterface() Record Component getter of isInterface. | |
| superClass | back to summary |
|---|---|
| public ClassDesc superClass() Record Component getter of superClass. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| public static final Function |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClassHierarchyResolver. | getClassInfo(ClassDesc cd)
Implements java. Returns the |
| classProvider | back to summary |
|---|---|
| private final Function<ClassDesc, Class<?>> classProvider | |
| SYSTEM_CLASS_PROVIDER | back to summary |
|---|---|
| public static final Function<ClassDesc, Class<?>> SYSTEM_CLASS_PROVIDER | |
| ClassLoadingClassHierarchyResolver | back to summary |
|---|---|
| public ClassLoadingClassHierarchyResolver(Function<ClassDesc, Class<?>> classProvider) | |
| getClassInfo | back to summary |
|---|---|
| public ClassHierarchyResolver. Implements java. Doc from java. Returns the This method is called by the Class-File API to obtain the hierarchy information of a class or interface; users should not call this method. The symbolic descriptor passed by the Class-File API always represents a class or interface.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| public static final Function |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClassHierarchyResolver. | getClassInfo(ClassDesc classDesc)
Implements java. Returns the |
| streamProvider | back to summary |
|---|---|
| private final Function<ClassDesc, InputStream> streamProvider | |
| SYSTEM_STREAM_PROVIDER | back to summary |
|---|---|
| public static final Function<ClassDesc, InputStream> SYSTEM_STREAM_PROVIDER | |
| ResourceParsingClassHierarchyResolver | back to summary |
|---|---|
| public ResourceParsingClassHierarchyResolver(Function<ClassDesc, InputStream> classStreamProvider) | |
| getClassInfo | back to summary |
|---|---|
| public ClassHierarchyResolver. Implements java. Doc from java. Returns the This method is called by the Class-File API to obtain the hierarchy information of a class or interface; users should not call this method. The symbolic descriptor passed by the Class-File API always represents a class or interface.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | StaticClassHierarchyResolver(Collection<ClassDesc> interfaceNames, Map<ClassDesc, ClassDesc> classToSuperClass)
|
| Modifier and Type | Method and Description |
|---|---|
| public ClassHierarchyResolver. | getClassInfo(ClassDesc classDesc)
Implements java. Returns the |
| map | back to summary |
|---|---|
| private final Map<ClassDesc, ClassHierarchyResolver. | |
| StaticClassHierarchyResolver | back to summary |
|---|---|
| public StaticClassHierarchyResolver(Collection<ClassDesc> interfaceNames, Map<ClassDesc, ClassDesc> classToSuperClass) | |
| getClassInfo | back to summary |
|---|---|
| public ClassHierarchyResolver. Implements java. Doc from java. Returns the This method is called by the Class-File API to obtain the hierarchy information of a class or interface; users should not call this method. The symbolic descriptor passed by the Class-File API always represents a class or interface.
| |