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>
annotationTokens
A list of annotation tokens representing the annotations of the represented field.private java.lang.String
descriptor
The descriptor of the field.private java.lang.String
genericSignature
The field's generic signature as found in the class file ornull
if the field is not generic.private int
modifiers
The modifiers of the represented field.private java.lang.String
name
The name of the field.private TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField
signatureResolution
The resolution of this field's generic type.private java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>
typeAnnotationTokens
A mapping of the field type's type annotation tokens.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FieldToken(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.LazyFieldDescription
toFieldDescription(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
private final java.lang.String 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 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, 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 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 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.
-
-