Record Class ModuleUtil.ModuleInfo
java.lang.Object
java.lang.Record
cloud.opencode.base.reflect.module.ModuleUtil.ModuleInfo
- Record Components:
moduleName- the module name, or "unnamed" for unnamed modules | 模块名,未命名模块返回 "unnamed"packageName- the package name of the class | 类的包名isNamed- whether the module is a named module | 是否为命名模块isOpen- whether the package is unconditionally open | 包是否无条件开放isExported- whether the package is unconditionally exported | 包是否无条件导出openPackages- set of packages that are unconditionally open | 无条件开放的包集合exportedPackages- set of packages that are unconditionally exported | 无条件导出的包集合
- Enclosing class:
ModuleUtil
public static record ModuleUtil.ModuleInfo(String moduleName, String packageName, boolean isNamed, boolean isOpen, boolean isExported, Set<String> openPackages, Set<String> exportedPackages)
extends Record
Module information for a class
类的模块信息
- Since:
- JDK 25, opencode-base-reflect V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexportedPackagesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisExportedrecord component.booleanisNamed()Returns the value of theisNamedrecord component.booleanisOpen()Returns the value of theisOpenrecord component.Returns the value of themoduleNamerecord component.Returns the value of theopenPackagesrecord component.Returns the value of thepackageNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModuleInfo
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
packageName
Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
isNamed
-
isOpen
-
isExported
public boolean isExported()Returns the value of theisExportedrecord component.- Returns:
- the value of the
isExportedrecord component
-
openPackages
Returns the value of theopenPackagesrecord component.- Returns:
- the value of the
openPackagesrecord component
-
exportedPackages
Returns the value of theexportedPackagesrecord component.- Returns:
- the value of the
exportedPackagesrecord component
-