public static class FieldDescription.ForLoadedField 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>>
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
NO_DEFAULT_VALUE
NON_GENERIC_SIGNATURE
EMPTY_MASK
EMPTY_NAME, NO_NAME
Constructor and Description |
---|
ForLoadedField(Field field)
Creates an immutable field description for a loaded field.
|
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.
|
TypeDescription.Generic |
getType()
Returns the type of the described field.
|
boolean |
isSynthetic()
Specifies if the modifier described by this object is synthetic.
|
asDefined
asSignatureToken, asToken, equals, getActualModifiers, getActualName, getDescriptor, getGenericSignature, getInternalName, hashCode, isVisibleTo, toGenericString, toString
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asSignatureToken, getActualModifiers
getDescriptor, getGenericSignature, isVisibleTo
isTransient, isVolatile
isEnum
isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
isFinal
toGenericString
getInternalName
getActualName
asToken
public ForLoadedField(Field field)
field
- The represented field.public TypeDescription.Generic 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
public boolean isSynthetic()
ModifierReviewable
isSynthetic
in interface ModifierReviewable
isSynthetic
in class ModifierReviewable.AbstractBase
true
if the modifier described by this object is synthetic.Copyright © 2014–2016. All rights reserved.