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 ProgramFileObject | fileObject
Record Component accessed by fileObject(). |
| private final Optional | packageName
Record Component accessed by packageName(). |
| private final List | qualifiedTypeNames
Record Component accessed by qualifiedTypeNames(). |
| private final Path | sourceRootPath
Record Component accessed by sourceRootPath(). |
| Access | Constructor and Description |
|---|---|
| public | ProgramDescriptor(ProgramFileObject fileObject, Optional<String> packageName, List<String> qualifiedTypeNames, Path sourceRootPath)
|
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public static Path | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| private static Set | |
| public ProgramFileObject | |
| public final int | |
| private static boolean | |
| public boolean | |
| pack-priv static ProgramDescriptor | |
| public Optional | |
| public List | |
| public Path | |
| private static Optional | toPackageName(Path file, String separator)
Maps the relative path of an entry in an exploded module to a package name. |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| fileObject | back to summary |
|---|---|
| private final ProgramFileObject fileObject Record Component accessed by fileObject(). | |
| packageName | back to summary |
|---|---|
| private final Optional<String> packageName Record Component accessed by packageName(). | |
| qualifiedTypeNames | back to summary |
|---|---|
| private final List<String> qualifiedTypeNames Record Component accessed by qualifiedTypeNames(). | |
| sourceRootPath | back to summary |
|---|---|
| private final Path sourceRootPath Record Component accessed by sourceRootPath(). | |
| ProgramDescriptor | back to summary |
|---|---|
| public ProgramDescriptor(ProgramFileObject fileObject, Optional<String> packageName, List<String> qualifiedTypeNames, Path sourceRootPath) | |
| computePackageNames | back to summary |
|---|---|
| public Set | |
| computeSourceRootPath | back to summary |
|---|---|
| public static Path computeSourceRootPath(Path program, String packageName) throws Fault | |
| 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).
| |
| explodedPackages | back to summary |
|---|---|
| private static Set | |
| fileObject | back to summary |
|---|---|
| public ProgramFileObject fileObject() Record Component getter of fileObject. | |
| 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 | |
| isHidden | back to summary |
|---|---|
| private static boolean isHidden(Path file) Returns true if the given file exists and is a hidden file | |
| isModular | back to summary |
|---|---|
| public boolean isModular() | |
| of | back to summary |
|---|---|
| pack-priv static ProgramDescriptor of(ProgramFileObject fileObject) throws Fault | |
| packageName | back to summary |
|---|---|
| public Optional Record Component getter of packageName. | |
| qualifiedTypeNames | back to summary |
|---|---|
| public List Record Component getter of qualifiedTypeNames. | |
| sourceRootPath | back to summary |
|---|---|
| public Path sourceRootPath() Record Component getter of sourceRootPath. | |
| toPackageName | back to summary |
|---|---|
| private static Optional Maps the relative path of an entry in an exploded module to a package name.
| |
| 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. | |