Package net.bytebuddy.dynamic
Class DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter.ExportsDefinitionAdapter
- java.lang.Object
-
- net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase<U>
-
- net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Delegator<U>
-
- net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition.AbstractBase<V>
-
- net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition.AbstractBase.Delegator<V>
-
- net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition.ExportsDefinition.Delegator<U>
-
- net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter.ExportsDefinitionAdapter
-
- All Implemented Interfaces:
DynamicType.Builder<U>,DynamicType.Builder.ModuleDefinition<U>,DynamicType.Builder.ModuleDefinition.ExportsDefinition<U>
- Enclosing class:
- DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter
@Enhance(includeSyntheticFields=true) protected class DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter.ExportsDefinitionAdapter extends DynamicType.Builder.ModuleDefinition.ExportsDefinition.Delegator<U>
An adapter for defining a module export.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition.AbstractBase
DynamicType.Builder.ModuleDefinition.AbstractBase.Delegator<V>
-
Nested classes/interfaces inherited from class net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase
DynamicType.Builder.AbstractBase.Adapter<U>, DynamicType.Builder.AbstractBase.UsingTypeWriter<U>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder
DynamicType.Builder.AbstractBase<S>, DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.InnerTypeDefinition<S>, DynamicType.Builder.MethodDefinition<S>, DynamicType.Builder.ModuleDefinition<S>, DynamicType.Builder.RecordComponentDefinition<S>, DynamicType.Builder.TypeVariableDefinition<S>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition
DynamicType.Builder.ModuleDefinition.AbstractBase<U>, DynamicType.Builder.ModuleDefinition.ExportsDefinition<U>, DynamicType.Builder.ModuleDefinition.OpensDefinition<S>, DynamicType.Builder.ModuleDefinition.RequiresDefinition<U>
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition.ExportsDefinition
DynamicType.Builder.ModuleDefinition.ExportsDefinition.Delegator<V>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringaPackageThe package that is being exported.private intmodifiersThe modifiers for the exporting declaration.private java.util.Set<java.lang.String>targetsThe modules to which the package is exported, or no modules if exported to all modules.
-
Constructor Summary
Constructors Modifier Constructor Description protectedExportsDefinitionAdapter(java.lang.String aPackage, int modifiers)Creates a new exporting definition adapter.protectedExportsDefinitionAdapter(java.lang.String aPackage, int modifiers, java.util.Set<java.lang.String> targets)Creates a new exporting definition adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DynamicType.Builder.ModuleDefinition<U>materialize()Creates a new builder that realizes the current state of the builder.DynamicType.Builder.ModuleDefinition.ExportsDefinition<U>to(java.util.Collection<java.lang.String> modules)Specifies the modules to which the previously defined package is exported.-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition.ExportsDefinition.Delegator
to
-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition.AbstractBase.Delegator
export, mainClass, open, packages, provides, require, uses, version
-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition.AbstractBase
export, export, exports, exports, mainClass, mainClass, open, open, opens, opens, packages, provides, provides, provides, provides, provides, require, require, requires, requires, uses, uses, uses
-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Delegator
adjustModule, adjustModule, annotateType, attribute, declaredTypes, define, defineConstructor, defineField, defineMethod, defineRecordComponent, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, innerTypeOf, innerTypeOf, invokable, make, make, make, make, merge, modifiers, module, name, nestHost, nestMembers, permittedSubclass, recordComponent, recordComponent, require, suffix, topLevelType, toTypeDescription, transform, typeVariable, unsealed, visit, wrap, wrap
-
Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase
annotateType, annotateType, annotateType, constructor, declaredTypes, declaredTypes, declaredTypes, define, define, define, define, define, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineProperty, defineProperty, defineProperty, defineProperty, defineRecordComponent, field, implement, implement, implement, innerTypeOf, innerTypeOf, innerTypeOf, invokable, merge, method, modifiers, modifiers, module, module, nestHost, nestMembers, nestMembers, nestMembers, noNestMate, permittedSubclass, permittedSubclass, permittedSubclass, require, require, require, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariable, withHashCodeEquals, withToString, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder
adjustModule, adjustModule, annotateType, annotateType, annotateType, annotateType, attribute, constructor, declaredTypes, declaredTypes, declaredTypes, declaredTypes, define, define, define, define, define, define, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineProperty, defineProperty, defineProperty, defineProperty, defineRecordComponent, defineRecordComponent, field, field, ignoreAlso, ignoreAlso, implement, implement, implement, implement, initializer, initializer, innerTypeOf, innerTypeOf, innerTypeOf, innerTypeOf, innerTypeOf, invokable, invokable, make, make, make, make, merge, merge, method, modifiers, modifiers, modifiers, module, module, module, name, nestHost, nestHost, nestMembers, nestMembers, nestMembers, nestMembers, noNestMate, permittedSubclass, permittedSubclass, permittedSubclass, permittedSubclass, recordComponent, recordComponent, require, require, require, require, serialVersionUid, suffix, topLevelType, toTypeDescription, transform, typeVariable, typeVariable, typeVariable, typeVariable, typeVariable, unsealed, visit, withHashCodeEquals, withToString, wrap, wrap, wrap, wrap
-
Methods inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.ModuleDefinition
export, export, export, exports, exports, mainClass, mainClass, mainClass, open, open, open, opens, opens, packages, packages, provides, provides, provides, provides, provides, provides, require, require, require, requires, requires, uses, uses, uses, uses, version
-
-
-
-
Field Detail
-
aPackage
private final java.lang.String aPackage
The package that is being exported.
-
modifiers
private final int modifiers
The modifiers for the exporting declaration.
-
targets
private final java.util.Set<java.lang.String> targets
The modules to which the package is exported, or no modules if exported to all modules.
-
-
Constructor Detail
-
ExportsDefinitionAdapter
protected ExportsDefinitionAdapter(java.lang.String aPackage, int modifiers)Creates a new exporting definition adapter.- Parameters:
aPackage- The package that is being exported.modifiers- The modifiers for the exporting declaration.
-
ExportsDefinitionAdapter
protected ExportsDefinitionAdapter(java.lang.String aPackage, int modifiers, java.util.Set<java.lang.String> targets)Creates a new exporting definition adapter.- Parameters:
aPackage- The package that is being exported.modifiers- The modifiers for the exporting declaration.targets- The modules to which the package is exported, or no modules if exported to all modules.
-
-
Method Detail
-
to
public DynamicType.Builder.ModuleDefinition.ExportsDefinition<U> to(java.util.Collection<java.lang.String> modules)
Specifies the modules to which the previously defined package is exported.- Parameters:
modules- The names of the modules to which the package is exported.- Returns:
- A new builder that is equal to this builder but with the given modules specified.
-
materialize
protected DynamicType.Builder.ModuleDefinition<U> materialize()
Description copied from class:DynamicType.Builder.AbstractBase.DelegatorCreates a new builder that realizes the current state of the builder.- Specified by:
materializein classDynamicType.Builder.ModuleDefinition.AbstractBase.Delegator<U>- Returns:
- A new builder that realizes the current state of the builder.
-
-