Package net.bytebuddy.dynamic
Interface DynamicType.Builder.ModuleDefinition.RequiresDefinition<U>
-
- Type Parameters:
U- A loaded type that the built type is guaranteed to be a subclass of.
- All Superinterfaces:
DynamicType.Builder<U>,DynamicType.Builder.ModuleDefinition<U>
- All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.ModuleDefinitionAdapter.RequiresDefinitionAdapter,DynamicType.Builder.ModuleDefinition.RequiresDefinition.Delegator
- Enclosing interface:
- DynamicType.Builder.ModuleDefinition<S>
public static interface DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> extends DynamicType.Builder.ModuleDefinition<U>
A specification of a module requirement.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDynamicType.Builder.ModuleDefinition.RequiresDefinition.Delegator<V>An abstract base implementation of aDynamicType.Builder.ModuleDefinition.RequiresDefinition.-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder
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>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DynamicType.Builder.ModuleDefinition.RequiresDefinition<U>requiredVersion(java.lang.String version)Specifies the version of the required module.-
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
-
-
-
-
Method Detail
-
requiredVersion
DynamicType.Builder.ModuleDefinition.RequiresDefinition<U> requiredVersion(@MaybeNull java.lang.String version)
Specifies the version of the required module.- Parameters:
version- The version of the required module ornullif no version is to be specified.- Returns:
- A new builder that is equal to this builder but with the given version specification.
-
-