public static class FieldDescription.ForLoadedField extends FieldDescription.AbstractFieldDescription
FieldDescription.AbstractFieldDescription, FieldDescription.ForLoadedField, FieldDescription.LatentModifierReviewable.AbstractModifierReviewableEMPTY_NAMEEMPTY_MASK| 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.
|
TypeDescription |
getFieldType()
Returns a description of the type of this field.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
String |
getName()
Returns the internalName of this byte code element.
|
boolean |
isSynthetic()
Specifies if the modifier described by this object is synthetic.
|
equals, getDescriptor, getGenericSignature, getInternalName, getSourceCodeName, hashCode, isVisibleTo, toStringisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isTransient, isVarArgs, isVolatilepublic ForLoadedField(Field field)
field - The represented field.public TypeDescription getFieldType()
FieldDescriptionpublic AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic String getName()
NamedElementpublic TypeDescription getDeclaringType()
DeclaredInTypenull if no such type exists.public int getModifiers()
ModifierReviewablepublic boolean isSynthetic()
ModifierReviewableisSynthetic in interface ModifierReviewableisSynthetic in class ModifierReviewable.AbstractModifierReviewabletrue if the modifier described by this object is synthetic.Copyright © 2014–2015. All rights reserved.