S - A loaded type that the built type is guaranteed to be a subclass of.public static interface DynamicType.Builder.ModuleDefinition<S> extends DynamicType.Builder<S>
| Modifier and Type | Interface and Description |
|---|---|
static class |
DynamicType.Builder.ModuleDefinition.AbstractBase<U>
An abstract base implementation of a
DynamicType.Builder.ModuleDefinition. |
static interface |
DynamicType.Builder.ModuleDefinition.ExportsDefinition<U>
A specification of a module export.
|
static interface |
DynamicType.Builder.ModuleDefinition.OpensDefinition<S>
A specification of a module opening.
|
static interface |
DynamicType.Builder.ModuleDefinition.RequiresDefinition<U>
A specification of a module requirement.
|
DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.InnerTypeDefinition<S>, DynamicType.Builder.MethodDefinition<S>, DynamicType.Builder.ModuleDefinition<S>, DynamicType.Builder.RecordComponentDefinition<S>, DynamicType.Builder.TypeVariableDefinition<S>| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.ModuleDefinition<S> |
export(String aPackage,
Collection<? extends ModifierContributor.ForModule.OfExport> modifierContributors)
Specifies a package export with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<S> |
export(String aPackage,
int modifiers)
Specifies a package export with explicit modifiers.
|
DynamicType.Builder.ModuleDefinition<S> |
export(String aPackage,
ModifierContributor.ForModule.OfExport... modifierContributor)
Specifies a package export with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<S> |
exports(Collection<String> packages)
Specifies packages that are exported by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
exports(String... aPackage)
Specifies packages that are exported by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
mainClass(Class<?> type)
Specifies the main class of the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
mainClass(String name)
Specifies the main class of the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
mainClass(TypeDescription typeDescription)
Specifies the main class of the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
open(String aPackage,
Collection<? extends ModifierContributor.ForModule.OfOpen> modifierContributors)
Specifies a package opening with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<S> |
open(String aPackage,
int modifiers)
Specifies a package opening with explicit modifiers.
|
DynamicType.Builder.ModuleDefinition<S> |
open(String aPackage,
ModifierContributor.ForModule.OfOpen... modifierContributor)
Specifies a package opening with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<S> |
opens(Collection<String> packages)
Specifies packages that are opened by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
opens(String... aPackage)
Specifies packages that are opened by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
packages(Collection<String> packages)
Specifies the packages that are contained within the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
packages(String... aPackage)
Specifies the packages that are contained within the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
provides(Class<?> service,
Class<?>... implementation)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
provides(Class<?> service,
Collection<Class<?>> implementations)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
provides(String service,
Collection<String> implementations)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
provides(String service,
String... implementation)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
provides(TypeDescription service,
Collection<TypeDescription> implementations)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
provides(TypeDescription service,
TypeDescription... implementation)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition.RequiresDefinition<S> |
require(String module,
Collection<? extends ModifierContributor.ForModule.OfRequire> modifierContributors)
Specifies a module requirement with additional modifiers.
|
DynamicType.Builder.ModuleDefinition.RequiresDefinition<S> |
require(String module,
int modifiers)
Specifies a module requirement with explicit modifiers.
|
DynamicType.Builder.ModuleDefinition.RequiresDefinition<S> |
require(String module,
ModifierContributor.ForModule.OfRequire... modifierContributor)
Specifies a module requirement with additional modifiers.
|
DynamicType.Builder.ModuleDefinition<S> |
requires(Collection<String> modules)
Specifies the modules that are required by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
requires(String... module)
Specifies the modules that are required by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
uses(Class<?>... service)
Specifies services that are used by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
uses(Collection<String> services)
Specifies services that are used by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
uses(String... service)
Specifies services that are used by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
uses(TypeDescription... service)
Specifies services that are used by the module being defined.
|
DynamicType.Builder.ModuleDefinition<S> |
version(String version)
Specifies the version of the module being defined.
|
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, wrapDynamicType.Builder.ModuleDefinition<S> version(@MaybeNull String version)
version - The version of the module or null if no version is to be specified.DynamicType.Builder.ModuleDefinition<S> mainClass(@MaybeNull Class<?> type)
type - The main class of the module or null if no main class is to be specified.DynamicType.Builder.ModuleDefinition<S> mainClass(@MaybeNull TypeDescription typeDescription)
typeDescription - The main class of the module or null if no main class is to be specified.DynamicType.Builder.ModuleDefinition<S> mainClass(@MaybeNull String name)
name - The name of the main class of the module or null if no main class is to be specified.DynamicType.Builder.ModuleDefinition<S> packages(String... aPackage)
aPackage - The names of the packages contained within the module.DynamicType.Builder.ModuleDefinition<S> packages(Collection<String> packages)
packages - The names of the packages contained within the module.DynamicType.Builder.ModuleDefinition<S> requires(String... module)
module - The names of the modules that are required.DynamicType.Builder.ModuleDefinition<S> requires(Collection<String> modules)
modules - The names of the modules that are required.DynamicType.Builder.ModuleDefinition.RequiresDefinition<S> require(String module, ModifierContributor.ForModule.OfRequire... modifierContributor)
module - The name of the module that is required.modifierContributor - The modifiers to apply to the module requirement.DynamicType.Builder.ModuleDefinition.RequiresDefinition<S> require(String module, Collection<? extends ModifierContributor.ForModule.OfRequire> modifierContributors)
module - The name of the module that is required.modifierContributors - The modifiers to apply to the module requirement.DynamicType.Builder.ModuleDefinition.RequiresDefinition<S> require(String module, int modifiers)
module - The name of the module that is required.modifiers - The modifiers to apply to the module requirement.DynamicType.Builder.ModuleDefinition<S> exports(String... aPackage)
aPackage - The names of the packages to export.DynamicType.Builder.ModuleDefinition<S> exports(Collection<String> packages)
packages - The names of the packages to export.DynamicType.Builder.ModuleDefinition<S> export(String aPackage, ModifierContributor.ForModule.OfExport... modifierContributor)
aPackage - The name of the package to export.modifierContributor - The modifiers to apply to the package export.DynamicType.Builder.ModuleDefinition<S> export(String aPackage, Collection<? extends ModifierContributor.ForModule.OfExport> modifierContributors)
aPackage - The name of the package to export.modifierContributors - The modifiers to apply to the package export.DynamicType.Builder.ModuleDefinition<S> export(String aPackage, int modifiers)
aPackage - The name of the package to export.modifiers - The modifiers to apply to the package export.DynamicType.Builder.ModuleDefinition<S> opens(String... aPackage)
aPackage - The names of the packages to open.DynamicType.Builder.ModuleDefinition<S> opens(Collection<String> packages)
packages - The names of the packages to open.DynamicType.Builder.ModuleDefinition<S> open(String aPackage, ModifierContributor.ForModule.OfOpen... modifierContributor)
aPackage - The name of the package to open.modifierContributor - The modifiers to apply to the package opening.DynamicType.Builder.ModuleDefinition<S> open(String aPackage, Collection<? extends ModifierContributor.ForModule.OfOpen> modifierContributors)
aPackage - The name of the package to open.modifierContributors - The modifiers to apply to the package opening.DynamicType.Builder.ModuleDefinition<S> open(String aPackage, int modifiers)
aPackage - The name of the package to open.modifiers - The modifiers to apply to the package opening.DynamicType.Builder.ModuleDefinition<S> uses(Class<?>... service)
service - The types of the services to use.DynamicType.Builder.ModuleDefinition<S> uses(TypeDescription... service)
service - The descriptions of the types of the services to use.DynamicType.Builder.ModuleDefinition<S> uses(String... service)
service - The names of the types of the services to use.DynamicType.Builder.ModuleDefinition<S> uses(Collection<String> services)
services - The names of the types of the services to use.DynamicType.Builder.ModuleDefinition<S> provides(Class<?> service, Class<?>... implementation)
service - The type of the service for which implementations are provided.implementation - The types of the implementations that are provided.DynamicType.Builder.ModuleDefinition<S> provides(Class<?> service, Collection<Class<?>> implementations)
service - The type of the service for which implementations are provided.implementations - The types of the implementations that are provided.DynamicType.Builder.ModuleDefinition<S> provides(TypeDescription service, TypeDescription... implementation)
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.DynamicType.Builder.ModuleDefinition<S> provides(TypeDescription service, Collection<TypeDescription> implementations)
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.DynamicType.Builder.ModuleDefinition<S> provides(String service, String... implementation)
service - The name of the type of the service for which implementations are provided.implementation - The names of the types of the implementations that are provided.DynamicType.Builder.ModuleDefinition<S> provides(String service, Collection<String> implementations)
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.