Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundModuleExportInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundModuleExportInfo
- All Implemented Interfaces:
ModuleExportInfo
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static record UnboundAttribute.UnboundModuleExportInfo(PackageEntry exportedPackage, int exportsFlagsMask, List<ModuleEntry> exportsTo)
extends Record
implements ModuleExportInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundModuleExportInfo(PackageEntry exportedPackage, int exportsFlagsMask, List<ModuleEntry> exportsTo) Creates an instance of aUnboundModuleExportInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexportedPackagerecord component.intReturns the value of theexportsFlagsMaskrecord component.Returns the value of theexportsTorecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.attribute.ModuleExportInfo
exportsFlags, has
-
Constructor Details
-
UnboundModuleExportInfo
public UnboundModuleExportInfo(PackageEntry exportedPackage, int exportsFlagsMask, List<ModuleEntry> exportsTo) Creates an instance of aUnboundModuleExportInforecord class.- Parameters:
exportedPackage- the value for theexportedPackagerecord componentexportsFlagsMask- the value for theexportsFlagsMaskrecord componentexportsTo- the value for theexportsTorecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
exportedPackage
Returns the value of theexportedPackagerecord component.- Specified by:
exportedPackagein interfaceModuleExportInfo- Returns:
- the value of the
exportedPackagerecord component
-
exportsFlagsMask
public int exportsFlagsMask()Returns the value of theexportsFlagsMaskrecord component.- Specified by:
exportsFlagsMaskin interfaceModuleExportInfo- Returns:
- the value of the
exportsFlagsMaskrecord component
-
exportsTo
Returns the value of theexportsTorecord component.- Specified by:
exportsToin interfaceModuleExportInfo- Returns:
- the value of the
exportsTorecord component
-