public static class FieldDescription.ForLoadedField extends FieldDescription.InDefinedShape.AbstractBase
FieldDescription.InDefinedShape.AbstractBaseFieldDescription.ForLoadedField, FieldDescription.InDefinedShape, FieldDescription.InGenericShape, FieldDescription.Latent, FieldDescription.SignatureToken, FieldDescription.Token, FieldDescription.TypeSubstitutingByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>AnnotationSource.Empty, AnnotationSource.ExplicitModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationNamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameNO_DEFAULT_VALUENON_GENERIC_SIGNATUREEMPTY_MASKEMPTY_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.
|
asDefinedasSignatureToken, asToken, equals, getActualModifiers, getActualName, getDescriptor, getGenericSignature, getInternalName, hashCode, isAccessibleTo, isVisibleTo, toGenericString, toStringgetEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitasSignatureToken, getActualModifiersgetDescriptor, getGenericSignature, isAccessibleTo, isVisibleTogetFieldManifestation, getFieldPersistence, isTransient, isVolatilegetEnumerationState, isEnumgetOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticgetSyntheticState, isFinaltoGenericStringgetInternalNamegetActualNameasTokenpublic ForLoadedField(Field field)
field - The represented field.public TypeDescription.Generic getType()
FieldDescriptionpublic AnnotationList getDeclaredAnnotations()
AnnotationSourcepublic String getName()
NamedElement.WithRuntimeNamepublic TypeDescription getDeclaringType()
DeclaredByTypenull if no such type exists.public int getModifiers()
ModifierReviewablepublic boolean isSynthetic()
ModifierReviewableisSynthetic in interface ModifierReviewableisSynthetic in class ModifierReviewable.AbstractBasetrue if the modifier described by this object is synthetic.Copyright © 2014–2017. All rights reserved.