Class DynamicType.Builder.FieldDefinition.Optional.AbstractBase<U>
java.lang.Object
net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase<U>
net.bytebuddy.dynamic.DynamicType.Builder.AbstractBase.Delegator<U>
net.bytebuddy.dynamic.DynamicType.Builder.FieldDefinition.Optional.AbstractBase<U>
- Type Parameters:
U- A loaded type that the built type is guaranteed to be a subclass of.
- All Implemented Interfaces:
DynamicType.Builder<U>, DynamicType.Builder.FieldDefinition<U>, DynamicType.Builder.FieldDefinition.Optional<U>
- Direct Known Subclasses:
DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase
- Enclosing interface:
DynamicType.Builder.FieldDefinition.Optional<U>
public abstract static class DynamicType.Builder.FieldDefinition.Optional.AbstractBase<U>
extends DynamicType.Builder.AbstractBase.Delegator<U>
implements DynamicType.Builder.FieldDefinition.Optional<U>
An abstract base implementation for an optional field definition.
-
Nested Class Summary
Nested classes/interfaces inherited from class DynamicType.Builder.AbstractBase
DynamicType.Builder.AbstractBase.Adapter<U>, DynamicType.Builder.AbstractBase.Delegator<U>, DynamicType.Builder.AbstractBase.UsingTypeWriter<U>Nested classes/interfaces inherited from interface DynamicType.Builder
DynamicType.Builder.AbstractBase<S>, 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 DynamicType.Builder.FieldDefinition
DynamicType.Builder.FieldDefinition.Optional<U>Nested classes/interfaces inherited from interface DynamicType.Builder.FieldDefinition.Optional
DynamicType.Builder.FieldDefinition.Optional.AbstractBase<U>, DynamicType.Builder.FieldDefinition.Optional.Valuable<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotateField(Annotation... annotation) Annotates the previously defined or matched field with the supplied annotations.annotateField(List<? extends Annotation> annotations) Annotates the previously defined or matched field with the supplied annotations.annotateField(AnnotationDescription... annotation) Annotates the previously defined or matched field with the supplied annotations.Methods inherited from class DynamicType.Builder.AbstractBase.Delegator
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, wrapMethods inherited from class 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, module, module, nestHost, nestMembers, nestMembers, nestMembers, noNestMate, permittedSubclass, permittedSubclass, permittedSubclass, require, require, require, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariable, withHashCodeEquals, withToString, wrap, wrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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, wrapMethods inherited from interface DynamicType.Builder.FieldDefinition
annotateField, attribute, transform
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
annotateField
Annotates the previously defined or matched field with the supplied annotations.- Specified by:
annotateFieldin interfaceDynamicType.Builder.FieldDefinition<U>- Parameters:
annotation- The annotations to declare on the previously defined or matched field.- Returns:
- A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched field.
-
annotateField
public DynamicType.Builder.FieldDefinition.Optional<U> annotateField(List<? extends Annotation> annotations) Annotates the previously defined or matched field with the supplied annotations.- Specified by:
annotateFieldin interfaceDynamicType.Builder.FieldDefinition<U>- Parameters:
annotations- The annotations to declare on the previously defined or matched field.- Returns:
- A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched field.
-
annotateField
public DynamicType.Builder.FieldDefinition.Optional<U> annotateField(AnnotationDescription... annotation) Annotates the previously defined or matched field with the supplied annotations.- Specified by:
annotateFieldin interfaceDynamicType.Builder.FieldDefinition<U>- Parameters:
annotation- The annotations to declare on the previously defined or matched field.- Returns:
- A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched field.
-