Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.FieldToken
java.lang.Object
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.FieldToken
- Enclosing class:
- TypePool.Default.LazyTypeDescription
A token for representing collected data on a field.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TypePool.Default.LazyTypeDescription.AnnotationToken>
A list of annotation tokens representing the annotations of the represented field.private final String
The descriptor of the field.private final String
The field's generic signature as found in the class file ornull
if the field is not generic.private final int
The modifiers of the represented field.private final String
The name of the field.The resolution of this field's generic type.private final Map<String,
List<TypePool.Default.LazyTypeDescription.AnnotationToken>> A mapping of the field type's type annotation tokens. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FieldToken
(String name, int modifiers, String descriptor, String genericSignature, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens) Creates a new field token. -
Method Summary
Modifier and TypeMethodDescriptiontoFieldDescription
(TypePool.Default.LazyTypeDescription lazyTypeDescription) Transforms this token into a lazy field description.
-
Field Details
-
name
The name of the field. -
modifiers
private final int modifiersThe modifiers of the represented field. -
descriptor
The descriptor of the field. -
genericSignature
The field's generic signature as found in the class file ornull
if the field is not generic. -
signatureResolution
private final TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField signatureResolutionThe resolution of this field's generic type. -
typeAnnotationTokens
private final Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokensA mapping of the field type's type annotation tokens. -
annotationTokens
A list of annotation tokens representing the annotations of the represented field.
-
-
Constructor Details
-
FieldToken
protected FieldToken(String name, int modifiers, String descriptor, @MaybeNull String genericSignature, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens) Creates a new field token.- Parameters:
name
- The name of the field.modifiers
- The modifiers of the represented field.descriptor
- The descriptor of the field.genericSignature
- The field's generic signature as found in the class file ornull
if the field is not generic.typeAnnotationTokens
- A mapping of the field type's type annotation tokens.annotationTokens
- A list of annotation tokens representing the annotations of the represented field.
-
-
Method Details
-
toFieldDescription
private TypePool.Default.LazyTypeDescription.LazyFieldDescription toFieldDescription(TypePool.Default.LazyTypeDescription lazyTypeDescription) Transforms this token into a lazy field description.- Parameters:
lazyTypeDescription
- The lazy type description to attach this field description to.- Returns:
- A field description resembling this field token.
-