public static class FieldDescription.Latent extends FieldDescription.InDefinedShape.AbstractBase
TypeDescription
.FieldDescription.InDefinedShape.AbstractBase
FieldDescription.ForLoadedField, FieldDescription.InDefinedShape, FieldDescription.Latent, FieldDescription.Token, FieldDescription.TypeSubstituting
ByteCodeElement.Accessible, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
NamedElement.WithGenericName, NamedElement.WithRuntimeName
NO_DEFAULT_VALUE
NON_GENERIC_SIGNATURE
EMPTY_NAME
EMPTY_MASK
Constructor and Description |
---|
Latent(TypeDescription declaringType,
FieldDescription.Token token)
Creates a new latent field description.
|
Latent(TypeDescription declaringType,
String fieldName,
int modifiers,
GenericTypeDescription fieldType,
List<? extends AnnotationDescription> declaredAnnotations)
Creates a new latent 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.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
String |
getName()
Returns the internalName of this byte code element.
|
GenericTypeDescription |
getType()
Returns the type of the described field.
|
asDefined, isAccessibleTo
asToken, asToken, equals, getDescriptor, getGenericSignature, getInternalName, getSourceCodeName, hashCode, isVisibleTo, toGenericString, toString
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toGenericString
asToken, asToken
getDescriptor, getGenericSignature, isVisibleTo
getInternalName
getSourceCodeName
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
public Latent(TypeDescription declaringType, FieldDescription.Token token)
declaringType
- The declaring type of the field.token
- A token representing the field's shape.public Latent(TypeDescription declaringType, String fieldName, int modifiers, GenericTypeDescription fieldType, List<? extends AnnotationDescription> declaredAnnotations)
declaringType
- The declaring type of the field.fieldName
- The name of the field.fieldType
- The field's modifiers.modifiers
- The type of the field.declaredAnnotations
- The annotations of this field.public GenericTypeDescription getType()
FieldDescription
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public String getName()
NamedElement.WithRuntimeName
public TypeDescription getDeclaringType()
DeclaredByType
null
if no such type exists.public int getModifiers()
ModifierReviewable
Copyright © 2014–2015. All rights reserved.