Package net.bytebuddy.dynamic
Class DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter
java.lang.Object
net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase<U>
net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Delegator<U>
net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter
- All Implemented Interfaces:
DynamicType.Builder<U>
,DynamicType.Builder.InnerTypeDefinition<U>
,DynamicType.Builder.InnerTypeDefinition.ForType<U>
- Enclosing class:
- DynamicType.Builder.AbstractBase.Adapter<U>
@Enhance(includeSyntheticFields=true)
protected class DynamicType.Builder.AbstractBase.Adapter.InnerTypeDefinitionForTypeAdapter
extends DynamicType.Builder.AbstractBase.Delegator<U>
implements DynamicType.Builder.InnerTypeDefinition.ForType<U>
An adapter for applying an inner type definition for an outer type.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase
DynamicType.Builder.AbstractBase.Adapter<U>, DynamicType.Builder.AbstractBase.Delegator<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.RecordComponentDefinition<S>, DynamicType.Builder.TypeVariableDefinition<S>
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Builder.InnerTypeDefinition
DynamicType.Builder.InnerTypeDefinition.ForType<U>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription
A description of the type that is the defined outer type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
InnerTypeDefinitionForTypeAdapter
(TypeDescription typeDescription) Creates a new adapter for an inner type definition for an outer type. -
Method Summary
Modifier and TypeMethodDescriptionDefines this inner type declaration as an anonymous type.Defines this inner type declaration as a member type.protected DynamicType.Builder<U>
Creates a new builder that realizes the current state of the builder.Methods inherited from class net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Delegator
annotateType, attribute, declaredTypes, define, defineConstructor, defineField, defineMethod, defineRecordComponent, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, innerTypeOf, innerTypeOf, invokable, make, make, make, make, merge, modifiers, name, nestHost, nestMembers, permittedSubclass, recordComponent, recordComponent, require, suffix, topLevelType, toTypeDescription, transform, typeVariable, unsealed, visit
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, nestHost, nestMembers, nestMembers, nestMembers, noNestMate, permittedSubclass, permittedSubclass, permittedSubclass, require, require, require, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariable, withHashCodeEquals, withToString
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
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, 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
-
Field Details
-
typeDescription
A description of the type that is the defined outer type.
-
-
Constructor Details
-
InnerTypeDefinitionForTypeAdapter
Creates a new adapter for an inner type definition for an outer type.- Parameters:
typeDescription
- A description of the type that is the defined outer type.
-
-
Method Details
-
asAnonymousType
Defines this inner type declaration as an anonymous type.- Specified by:
asAnonymousType
in interfaceDynamicType.Builder.InnerTypeDefinition<U>
- Returns:
- A new builder that is equal to this type builder but that defines the previous inner type definition as a anonymous type.
-
asMemberType
Defines this inner type declaration as a member type.- Specified by:
asMemberType
in interfaceDynamicType.Builder.InnerTypeDefinition.ForType<U>
- Returns:
- A new builder that is equal to this type builder but that defines the previous inner type definition as a member type.
-
materialize
Description copied from class:DynamicType.Builder.AbstractBase.Delegator
Creates a new builder that realizes the current state of the builder.- Specified by:
materialize
in classDynamicType.Builder.AbstractBase.Delegator<U>
- Returns:
- A new builder that realizes the current state of the builder.
-