@HashCodeAndEqualsPlugin.Enhance protected static class TypePool.Default.LazyTypeDescription.FieldToken extends java.lang.Object
Modifier and Type | Field and 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 or
null 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.
|
Modifier | Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
private TypePool.Default.LazyTypeDescription.LazyFieldDescription |
toFieldDescription(TypePool.Default.LazyTypeDescription lazyTypeDescription)
Transforms this token into a lazy field description.
|
private final java.lang.String name
private final int modifiers
private final java.lang.String descriptor
private final java.lang.String genericSignature
null
if the field is not generic.private final TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField signatureResolution
private final java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens
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)
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 or null
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.private TypePool.Default.LazyTypeDescription.LazyFieldDescription toFieldDescription(TypePool.Default.LazyTypeDescription lazyTypeDescription)
lazyTypeDescription
- The lazy type description to attach this field description to.