U - A loaded type that the built type is guaranteed to be a subclass of.public abstract static class DynamicType.Builder.ModuleDefinition.AbstractBase<U> extends DynamicType.Builder.AbstractBase.Delegator<U> implements DynamicType.Builder.ModuleDefinition<U>
DynamicType.Builder.ModuleDefinition.| Modifier and Type | Class and Description |
|---|---|
static class |
DynamicType.Builder.ModuleDefinition.AbstractBase.Delegator<V>
An adapter for a
DynamicType.Builder.ModuleDefinition. |
DynamicType.Builder.AbstractBase.Adapter<U>, DynamicType.Builder.AbstractBase.UsingTypeWriter<U>DynamicType.Builder.ModuleDefinition.AbstractBase<U>, DynamicType.Builder.ModuleDefinition.ExportsDefinition<U>, DynamicType.Builder.ModuleDefinition.OpensDefinition<S>, DynamicType.Builder.ModuleDefinition.RequiresDefinition<U>DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.InnerTypeDefinition<S>, DynamicType.Builder.MethodDefinition<S>, DynamicType.Builder.ModuleDefinition<S>, DynamicType.Builder.RecordComponentDefinition<S>, DynamicType.Builder.TypeVariableDefinition<S>| Constructor and Description |
|---|
AbstractBase() |
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.ModuleDefinition<U> |
export(String aPackage,
Collection<? extends ModifierContributor.ForModule.OfExport> modifierContributors)
Specifies a package export with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<U> |
export(String aPackage,
ModifierContributor.ForModule.OfExport... modifierContributor)
Specifies a package export with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<U> |
exports(Collection<String> packages)
Specifies packages that are exported by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
exports(String... aPackage)
Specifies packages that are exported by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
mainClass(Class<?> type)
Specifies the main class of the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
mainClass(TypeDescription typeDescription)
Specifies the main class of the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
open(String aPackage,
Collection<? extends ModifierContributor.ForModule.OfOpen> modifierContributors)
Specifies a package opening with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<U> |
open(String aPackage,
ModifierContributor.ForModule.OfOpen... modifierContributor)
Specifies a package opening with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<U> |
opens(Collection<String> packages)
Specifies packages that are opened by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
opens(String... aPackage)
Specifies packages that are opened by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
packages(String... aPackage)
Specifies the packages that are contained within the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
provides(Class<?> service,
Class<?>... implementations)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
provides(Class<?> service,
Collection<Class<?>> implementations)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
provides(String service,
String... implementations)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
provides(TypeDescription service,
Collection<TypeDescription> implementations)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
provides(TypeDescription service,
TypeDescription... implementation)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> |
require(String module,
Collection<? extends ModifierContributor.ForModule.OfRequire> modifierContributors)
Specifies a module requirement with additional modifiers.
|
DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> |
require(String module,
ModifierContributor.ForModule.OfRequire... modifierContributor)
Specifies a module requirement with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<U> |
requires(Collection<String> modules)
Specifies the modules that are required by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
requires(String... module)
Specifies the modules that are required by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
uses(Class<?>... service)
Specifies services that are used by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
uses(String... service)
Specifies services that are used by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
uses(TypeDescription... service)
Specifies services that are used by the module being defined.
|
adjustModule, adjustModule, annotateType, attribute, declaredTypes, define, defineConstructor, defineField, defineMethod, defineRecordComponent, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, innerTypeOf, innerTypeOf, invokable, make, make, make, make, materialize, merge, modifiers, module, name, nestHost, nestMembers, permittedSubclass, recordComponent, recordComponent, require, suffix, topLevelType, toTypeDescription, transform, typeVariable, unsealed, visit, wrap, wrapannotateType, 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, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexport, mainClass, open, packages, provides, require, uses, versionadjustModule, 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, wrappublic DynamicType.Builder.ModuleDefinition<U> mainClass(@MaybeNull Class<?> type)
mainClass in interface DynamicType.Builder.ModuleDefinition<U>type - The main class of the module or null if no main class is to be specified.public DynamicType.Builder.ModuleDefinition<U> mainClass(@MaybeNull TypeDescription typeDescription)
mainClass in interface DynamicType.Builder.ModuleDefinition<U>typeDescription - The main class of the module or null if no main class is to be specified.public DynamicType.Builder.ModuleDefinition<U> packages(String... aPackage)
packages in interface DynamicType.Builder.ModuleDefinition<U>aPackage - The names of the packages contained within the module.public DynamicType.Builder.ModuleDefinition<U> requires(String... module)
requires in interface DynamicType.Builder.ModuleDefinition<U>module - The names of the modules that are required.public DynamicType.Builder.ModuleDefinition<U> requires(Collection<String> modules)
requires in interface DynamicType.Builder.ModuleDefinition<U>modules - The names of the modules that are required.public DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> require(String module, ModifierContributor.ForModule.OfRequire... modifierContributor)
require in interface DynamicType.Builder.ModuleDefinition<U>module - The name of the module that is required.modifierContributor - The modifiers to apply to the module requirement.public DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> require(String module, Collection<? extends ModifierContributor.ForModule.OfRequire> modifierContributors)
require in interface DynamicType.Builder.ModuleDefinition<U>module - The name of the module that is required.modifierContributors - The modifiers to apply to the module requirement.public DynamicType.Builder.ModuleDefinition<U> exports(String... aPackage)
exports in interface DynamicType.Builder.ModuleDefinition<U>aPackage - The names of the packages to export.public DynamicType.Builder.ModuleDefinition<U> exports(Collection<String> packages)
exports in interface DynamicType.Builder.ModuleDefinition<U>packages - The names of the packages to export.public DynamicType.Builder.ModuleDefinition<U> export(String aPackage, ModifierContributor.ForModule.OfExport... modifierContributor)
export in interface DynamicType.Builder.ModuleDefinition<U>aPackage - The name of the package to export.modifierContributor - The modifiers to apply to the package export.public DynamicType.Builder.ModuleDefinition<U> export(String aPackage, Collection<? extends ModifierContributor.ForModule.OfExport> modifierContributors)
export in interface DynamicType.Builder.ModuleDefinition<U>aPackage - The name of the package to export.modifierContributors - The modifiers to apply to the package export.public DynamicType.Builder.ModuleDefinition<U> opens(String... aPackage)
opens in interface DynamicType.Builder.ModuleDefinition<U>aPackage - The names of the packages to open.public DynamicType.Builder.ModuleDefinition<U> opens(Collection<String> packages)
opens in interface DynamicType.Builder.ModuleDefinition<U>packages - The names of the packages to open.public DynamicType.Builder.ModuleDefinition<U> open(String aPackage, ModifierContributor.ForModule.OfOpen... modifierContributor)
open in interface DynamicType.Builder.ModuleDefinition<U>aPackage - The name of the package to open.modifierContributor - The modifiers to apply to the package opening.public DynamicType.Builder.ModuleDefinition<U> open(String aPackage, Collection<? extends ModifierContributor.ForModule.OfOpen> modifierContributors)
open in interface DynamicType.Builder.ModuleDefinition<U>aPackage - The name of the package to open.modifierContributors - The modifiers to apply to the package opening.public DynamicType.Builder.ModuleDefinition<U> uses(Class<?>... service)
uses in interface DynamicType.Builder.ModuleDefinition<U>service - The types of the services to use.public DynamicType.Builder.ModuleDefinition<U> uses(TypeDescription... service)
uses in interface DynamicType.Builder.ModuleDefinition<U>service - The descriptions of the types of the services to use.public DynamicType.Builder.ModuleDefinition<U> uses(String... service)
uses in interface DynamicType.Builder.ModuleDefinition<U>service - The names of the types of the services to use.public DynamicType.Builder.ModuleDefinition<U> provides(Class<?> service, Class<?>... implementations)
provides in interface DynamicType.Builder.ModuleDefinition<U>service - The type of the service for which implementations are provided.implementations - The types of the implementations that are provided.public DynamicType.Builder.ModuleDefinition<U> provides(Class<?> service, Collection<Class<?>> implementations)
provides in interface DynamicType.Builder.ModuleDefinition<U>service - The type of the service for which implementations are provided.implementations - The types of the implementations that are provided.public DynamicType.Builder.ModuleDefinition<U> provides(TypeDescription service, TypeDescription... implementation)
provides in interface DynamicType.Builder.ModuleDefinition<U>service - The description of the type of the service for which implementations are provided.implementation - The descriptions of the types of the implementations that are provided.public DynamicType.Builder.ModuleDefinition<U> provides(TypeDescription service, Collection<TypeDescription> implementations)
provides in interface DynamicType.Builder.ModuleDefinition<U>service - The description of the type of the service for which implementations are provided.implementations - The descriptions of the types of the implementations that are provided.public DynamicType.Builder.ModuleDefinition<U> provides(String service, String... implementations)
provides in interface DynamicType.Builder.ModuleDefinition<U>service - The name of the type of the service for which implementations are provided.implementations - The names of the types of the implementations that are provided.Copyright © 2014–2025. All rights reserved.