private class TypePool.Default.LazyTypeDescription.LazyFieldDescription extends FieldDescription.InDefinedShape.AbstractBase
FieldDescription.InDefinedShape.AbstractBase
FieldDescription.ForLoadedField, FieldDescription.InDefinedShape, FieldDescription.InGenericShape, FieldDescription.Latent, FieldDescription.SignatureToken, FieldDescription.Token, FieldDescription.TypeSubstituting
ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
AnnotationSource.Empty, AnnotationSource.Explicit
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
Modifier and Type | Field and Description |
---|---|
private java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> |
annotationTokens
A list of annotation descriptions of this field.
|
private java.lang.String |
descriptor
The descriptor of this field's type.
|
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 field.
|
private java.lang.String |
name
The name of the field.
|
private TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField |
signatureResolution
A 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.
|
NO_DEFAULT_VALUE
NON_GENERIC_SIGNATURE
EMPTY_MASK
EMPTY_NAME, NO_NAME
Modifier | Constructor and Description |
---|---|
private |
LazyFieldDescription(java.lang.String name,
int modifiers,
java.lang.String descriptor,
java.lang.String genericSignature,
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField signatureResolution,
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 lazy field description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
java.lang.String |
getGenericSignature()
Returns the generic signature of this byte code element.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
java.lang.String |
getName()
Returns the internalName of this byte code element.
|
TypeDescription.Generic |
getType()
Returns the type of the described field.
|
asDefined
asSignatureToken, asToken, equals, getActualModifiers, getActualName, getDescriptor, getInternalName, hashCode, isAccessibleTo, isVisibleTo, toGenericString, toString
getEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asSignatureToken, getActualModifiers
getDescriptor, isAccessibleTo, isVisibleTo
getFieldManifestation, getFieldPersistence, isTransient, isVolatile
getEnumerationState, isEnum
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
getSyntheticState, isFinal, isSynthetic
toGenericString
getInternalName
getActualName
asToken
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
private LazyFieldDescription(java.lang.String name, int modifiers, java.lang.String descriptor, java.lang.String genericSignature, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField signatureResolution, 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 field.descriptor
- The descriptor of this field's type.genericSignature
- The field's generic signature as found in the class file or null
if the field is not generic.signatureResolution
- A resolution of this field's generic type.typeAnnotationTokens
- A mapping of the field type's type annotation tokens.annotationTokens
- A list of annotation descriptions of this field.public TypeDescription.Generic getType()
public AnnotationList getDeclaredAnnotations()
public java.lang.String getName()
public TypeDescription getDeclaringType()
null
if no such type exists.public int getModifiers()
public java.lang.String getGenericSignature()
null
is returned as a signature.getGenericSignature
in interface ByteCodeElement
getGenericSignature
in class FieldDescription.AbstractBase
null
if this element is not generic.