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>>
NamedElement.WithGenericName, 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. the form it is declared in and without its type variable's resolved.
|
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, getDescriptor, getGenericSignature, getInternalName, getSourceCodeName, hashCode, isVisibleTo, toGenericString, toString
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asSignatureToken, getActualModifiers
getDescriptor, getGenericSignature, isVisibleTo
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
toGenericString
getInternalName
getSourceCodeName
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()
FieldDescription
getType
in interface FieldDescription
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
getDeclaredAnnotations
in interface AnnotatedCodeElement
public TypeDescription.Generic getDeclaringType()
DeclaredByType
getDeclaringType
in interface DeclaredByType
getDeclaringType
in interface FieldDescription.InGenericShape
null
if no such type exists.public int getModifiers()
ModifierReviewable
getModifiers
in interface ModifierReviewable
public String getName()
NamedElement.WithRuntimeName
getName
in interface NamedElement.WithRuntimeName
public FieldDescription.InDefinedShape asDefined()
ByteCodeElement.TypeDependant
asDefined
in interface ByteCodeElement.TypeDependant<FieldDescription.InDefinedShape,FieldDescription.Token>
Copyright © 2014–2016. All rights reserved.