Package net.bytebuddy.description.module
Class ModuleDescription.Exports.Simple
- java.lang.Object
-
- net.bytebuddy.description.ModifierReviewable.AbstractBase
-
- net.bytebuddy.description.module.ModuleDescription.Exports.AbstractBase
-
- net.bytebuddy.description.module.ModuleDescription.Exports.Simple
-
- All Implemented Interfaces:
ModifierReviewable,ModifierReviewable.ForFieldDescription,ModifierReviewable.ForMethodDescription,ModifierReviewable.ForModuleDescription,ModifierReviewable.ForModuleRequirement,ModifierReviewable.ForParameterDescription,ModifierReviewable.ForTypeDefinition,ModifierReviewable.OfAbstraction,ModifierReviewable.OfByteCodeElement,ModifierReviewable.OfEnumeration,ModifierReviewable.OfMandatable,ModuleDescription.Exports
- Enclosing interface:
- ModuleDescription.Exports
public static class ModuleDescription.Exports.Simple extends ModuleDescription.Exports.AbstractBase
A simple implementation ofModuleDescription.Exportsthat stores the target modules and modifiers.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.module.ModuleDescription.Exports
ModuleDescription.Exports.AbstractBase, ModuleDescription.Exports.Simple
-
-
Field Summary
Fields Modifier and Type Field Description protected intmodifiersThe modifiers for this export.private java.util.Set<java.lang.String>targetsThe target modules for this export.-
Fields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASK
-
-
Constructor Summary
Constructors Constructor Description Simple(java.util.Set<java.lang.String> targets, int modifiers)Creates a new simple export declaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetModifiers()Returns the modifier that is described by this object.java.util.Set<java.lang.String>getTargets()Returns the target modules that this package is exported to.-
Methods inherited from class net.bytebuddy.description.module.ModuleDescription.Exports.AbstractBase
equals, hashCode, isQualified, toString
-
Methods inherited from class net.bytebuddy.description.ModifierReviewable.AbstractBase
getEnumerationState, getFieldManifestation, getFieldPersistence, getMandate, getMethodManifestation, getMethodStrictness, getOpenness, getOwnership, getParameterManifestation, getProvisioningState, getRequiredPhase, getSynchronizationState, getSyntheticState, getTransitivity, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isOpen, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStaticPhase, isStrict, isSynchronized, isSynthetic, isTransient, isTransitive, isVarArgs, isVolatile
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getSyntheticState, isFinal, isSynthetic
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfMandatable
getMandate, isMandated
-
-
-
-
Method Detail
-
getTargets
public java.util.Set<java.lang.String> 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.
-
getModifiers
public int getModifiers()
Returns the modifier that is described by this object.- Returns:
- The modifier that is described by this object.
-
-