Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.FieldToken
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.FieldToken
-
- Enclosing class:
- TypePool.Default.LazyTypeDescription
@Enhance protected static class TypePool.Default.LazyTypeDescription.FieldToken extends java.lang.Object
A token for representing collected data on a field.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>annotationTokensA list of annotation tokens representing the annotations of the represented field.private java.lang.StringdescriptorThe descriptor of the field.private java.lang.StringgenericSignatureThe field's generic signature as found in the class file ornullif the field is not generic.private intmodifiersThe modifiers of the represented field.private java.lang.StringnameThe name of the field.private TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForFieldsignatureResolutionThe resolution of this field's generic type.private java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>typeAnnotationTokensA mapping of the field type's type annotation tokens.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFieldToken(java.lang.String name, int modifiers, java.lang.String descriptor, java.lang.String genericSignature, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens)Creates a new field token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private TypePool.Default.LazyTypeDescription.LazyFieldDescriptiontoFieldDescription(TypePool.Default.LazyTypeDescription lazyTypeDescription)Transforms this token into a lazy field description.
-
-
-
Field Detail
-
name
private final java.lang.String name
The name of the field.
-
modifiers
private final int modifiers
The modifiers of the represented field.
-
descriptor
private final java.lang.String descriptor
The descriptor of the field.
-
genericSignature
@UnknownNull private final java.lang.String genericSignature
The field's generic signature as found in the class file ornullif the field is not generic.
-
signatureResolution
private final TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField signatureResolution
The resolution of this field's generic type.
-
typeAnnotationTokens
private final java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens
A mapping of the field type's type annotation tokens.
-
annotationTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens
A list of annotation tokens representing the annotations of the represented field.
-
-
Constructor Detail
-
FieldToken
protected FieldToken(java.lang.String name, int modifiers, java.lang.String descriptor, @MaybeNull java.lang.String genericSignature, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, java.util.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 ornullif 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 Detail
-
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.
-
-