Package net.bytebuddy.description.module
Interface ModuleDescription.Exports
- All Superinterfaces:
ModifierReviewable,ModifierReviewable.OfMandatable
- All Known Implementing Classes:
ModuleDescription.Exports.AbstractBase,ModuleDescription.Exports.Simple
- Enclosing interface:
ModuleDescription
Represents an exported package declaration in a module. Exports control which packages
are accessible to other modules.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract base implementation ofModuleDescription.Exportsthat provides a default implementation forModuleDescription.Exports.AbstractBase.isQualified().static classA simple implementation ofModuleDescription.Exportsthat stores the target modules and modifiers.Nested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable -
Field Summary
Fields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASK -
Method Summary
Modifier and TypeMethodDescriptionReturns the target modules that this package is exported to.booleanDetermines if this export is qualified (exported to specific modules only).Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSyntheticMethods inherited from interface net.bytebuddy.description.ModifierReviewable.OfMandatable
getMandate, isMandated
-
Method Details
-
getTargets
Returns the target modules that this package is exported to.- Returns:
- A set of module names that can access this exported package, or an empty set if exported to all modules.
-
isQualified
boolean isQualified()Determines if this export is qualified (exported to specific modules only).- Returns:
trueif this export has specific target modules,falseif exported to all modules.
-