protected class InstrumentedType.AbstractBase.FieldToken extends FieldDescription.AbstractFieldDescription
FieldDescription.AbstractFieldDescription, FieldDescription.ForLoadedField, FieldDescription.LatentModifierReviewable.AbstractModifierReviewable| Constructor and Description |
|---|
FieldToken(String name,
TypeDescription fieldType,
int modifiers)
Creates a new field for the enclosing instrumented type.
|
| 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.
|
String |
getDescriptor()
Returns the descriptor of this byte code element.
|
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.
|
equals, getGenericSignature, getInternalName, getSourceCodeName, hashCode, isVisibleTo, toStringisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, 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, isSynthetic, isTransient, isVarArgs, isVolatilepublic FieldToken(String name, TypeDescription fieldType, int modifiers)
name - The internalName of the field.fieldType - The type description of the field.modifiers - The modifiers of the field.public TypeDescription getFieldType()
FieldDescriptionpublic AnnotationList getDeclaredAnnotations()
AnnotatedElementpublic String getName()
NamedElementpublic String getDescriptor()
ByteCodeElementgetDescriptor in interface ByteCodeElementgetDescriptor in class FieldDescription.AbstractFieldDescriptionpublic TypeDescription getDeclaringType()
DeclaredInTypenull if no such type exists.public int getModifiers()
ModifierReviewableCopyright © 2014. All rights reserved.