public static class FieldDescription.TypeSubstituting extends FieldDescription.AbstractBase implements FieldDescription.InGenericShape
FieldDescription.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>>
AnnotationSource.Empty, AnnotationSource.Explicit
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
NO_DEFAULT_VALUE
NON_GENERIC_SIGNATURE
EMPTY_MASK
EMPTY_NAME, NO_NAME
Constructor and Description |
---|
TypeSubstituting(TypeDescription.Generic declaringType,
FieldDescription fieldDescription,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a field description with a substituted field type.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.InDefinedShape |
asDefined()
Returns this type dependant in its defined shape, i.e.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeDescription.Generic |
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.
|
asSignatureToken, asToken, equals, getActualModifiers, getActualName, getDescriptor, getGenericSignature, getInternalName, hashCode, isAccessibleTo, isVisibleTo, toGenericString, toString
getEnumerationState, 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, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asSignatureToken, getActualModifiers
isAccessibleTo, isVisibleTo
getDescriptor, getGenericSignature
getFieldManifestation, getFieldPersistence, isTransient, isVolatile
getEnumerationState, isEnum
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
getSyntheticState, isFinal, isSynthetic
toGenericString
getInternalName
getActualName
asToken
public TypeSubstituting(TypeDescription.Generic declaringType, FieldDescription fieldDescription, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
declaringType
- The declaring type of the field.fieldDescription
- The represented field.visitor
- A visitor that is applied to the field type.public TypeDescription.Generic getType()
getType
in interface FieldDescription
public AnnotationList getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotationSource
public TypeDescription.Generic getDeclaringType()
getDeclaringType
in interface DeclaredByType
getDeclaringType
in interface FieldDescription.InGenericShape
null
if no such type exists.public int getModifiers()
getModifiers
in interface ModifierReviewable
public String getName()
getName
in interface NamedElement.WithRuntimeName
public FieldDescription.InDefinedShape asDefined()
asDefined
in interface ByteCodeElement.TypeDependant<FieldDescription.InDefinedShape,FieldDescription.Token>
Copyright © 2014–2020. All rights reserved.