public static class FieldDescription.ForLoadedField extends FieldDescription.AbstractFieldDescription
FieldDescription.AbstractFieldDescription, FieldDescription.ForLoadedField, FieldDescription.Latent
ModifierReviewable.AbstractModifierReviewable
Constructor and Description |
---|
ForLoadedField(Field field)
Creates an immutable field description for a loaded field.
|
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
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 |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
boolean |
isSynthetic()
Specifies if the modifier described by this object is synthetic.
|
equals, getDescriptor, getGenericSignature, getInternalName, hashCode, isVisibleTo
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isTransient, isVarArgs, isVolatile
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public ForLoadedField(Field field)
field
- The represented field.public TypeDescription getFieldType()
FieldDescription
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
public Annotation[] getAnnotations()
public Annotation[] getDeclaredAnnotations()
public String getName()
ByteCodeElement
public TypeDescription getDeclaringType()
DeclaredInType
null
if no such type exists.public int getModifiers()
ModifierReviewable
public boolean isSynthetic()
ModifierReviewable
isSynthetic
in interface ModifierReviewable
isSynthetic
in class ModifierReviewable.AbstractModifierReviewable
true
if the modifier described by this object is synthetic.Copyright © 2014. All rights reserved.