@HashCodeAndEqualsPlugin.Enhance(includeSyntheticFields=true) protected class DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter extends DynamicType.Builder.ModuleDefinition.AbstractBase<U>
| Modifier and Type | Class and Description |
|---|---|
protected class |
DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter.ExportsDefinitionAdapter
An adapter for defining a module export.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter.OpensDefinitionAdapter
An adapter for defining a module opening.
|
protected class |
DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter.RequiresDefinitionAdapter
An adapter for definining a module requirement.
|
DynamicType.Builder.ModuleDefinition.AbstractBase.Delegator<V>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>| Modifier | Constructor and Description |
|---|---|
protected |
ModuleDefinitionAdapter(String name,
int modifiers) |
protected |
ModuleDefinitionAdapter(String name,
int modifiers,
String version,
String mainClass,
Set<String> packages,
Map<String,ModuleDescription.Requires> requires,
Map<String,ModuleDescription.Exports> exports,
Map<String,ModuleDescription.Opens> opens,
Set<String> uses,
Map<String,ModuleDescription.Provides> provides)
Creates a new module definition adapter.
|
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.ModuleDefinition.ExportsDefinition<U> |
export(String aPackage,
int modifiers)
Specifies a package export with explicit modifiers.
|
DynamicType.Builder.ModuleDefinition<U> |
mainClass(String name)
Specifies the main class of the module being defined.
|
protected DynamicType.Builder<U> |
materialize()
Creates a new builder that realizes the current state of the builder.
|
DynamicType.Builder.ModuleDefinition.OpensDefinition<U> |
open(String aPackage,
int modifiers)
Specifies a package opening with explicit modifiers.
|
DynamicType.Builder.ModuleDefinition<U> |
packages(Collection<String> packages)
Specifies the packages that are contained within the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
provides(String service,
Collection<String> implementations)
Specifies service implementations that are provided by the module being defined.
|
DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> |
require(String module,
int modifiers)
Specifies a module requirement with explicit modifiers.
|
DynamicType.Builder.ModuleDefinition<U> |
uses(Collection<String> services)
Specifies services that are used by the module being defined.
|
DynamicType.Builder.ModuleDefinition<U> |
version(String version)
Specifies the version of the module being defined.
|
export, export, exports, exports, mainClass, mainClass, open, open, opens, opens, packages, provides, provides, provides, provides, provides, require, require, requires, requires, uses, uses, usesadjustModule, 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, 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, waitadjustModule, 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, wrapprotected ModuleDefinitionAdapter(String name, int modifiers)
protected ModuleDefinitionAdapter(String name, int modifiers, @MaybeNull String version, @MaybeNull String mainClass, Set<String> packages, Map<String,ModuleDescription.Requires> requires, Map<String,ModuleDescription.Exports> exports, Map<String,ModuleDescription.Opens> opens, Set<String> uses, Map<String,ModuleDescription.Provides> provides)
name - The name of the module.modifiers - The modifiers of the module.version - The module version or null if no version was specified.mainClass - The module's main class or null if no main class was specified.packages - The module's packages.requires - The modules that this module requires.exports - The packages that this module exports.opens - The packages that this module opens.uses - The services that this module uses.provides - The services that this module provides.public DynamicType.Builder.ModuleDefinition<U> version(@MaybeNull String version)
version - The version of the module or null if no version is to be specified.public DynamicType.Builder.ModuleDefinition<U> mainClass(@MaybeNull String name)
name - The name of the main class of the module or null if no main class is to be specified.public DynamicType.Builder.ModuleDefinition<U> packages(Collection<String> packages)
packages - The names of the packages contained within the module.public DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> require(String module, int modifiers)
module - The name of the module that is required.modifiers - The modifiers to apply to the module requirement.public DynamicType.Builder.ModuleDefinition.ExportsDefinition<U> export(String aPackage, int modifiers)
aPackage - The name of the package to export.modifiers - The modifiers to apply to the package export.public DynamicType.Builder.ModuleDefinition.OpensDefinition<U> open(String aPackage, int modifiers)
aPackage - The name of the package to open.modifiers - The modifiers to apply to the package opening.public DynamicType.Builder.ModuleDefinition<U> uses(Collection<String> services)
services - The names of the types of the services to use.public DynamicType.Builder.ModuleDefinition<U> 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.protected DynamicType.Builder<U> materialize()
DynamicType.Builder.AbstractBase.Delegatormaterialize in class DynamicType.Builder.AbstractBase.Delegator<U>Copyright © 2014–2025. All rights reserved.