protected static class Implementation.Context.Default.FieldSetter extends Implementation.Context.Default.AbstractPropertyAccessorMethod
MethodDescription.InDefinedShape.AbstractBase
MethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.InDefinedShape, MethodDescription.InGenericShape, MethodDescription.Latent, MethodDescription.SignatureToken, MethodDescription.Token, MethodDescription.TypeSubstituting, MethodDescription.TypeToken
TypeVariableSource.Visitor<T>
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
AnnotationSource.Empty, AnnotationSource.Explicit
Modifier and Type | Field and Description |
---|---|
private FieldDescription |
fieldDescription
The field for which a setter is described.
|
private TypeDescription |
instrumentedType
The instrumented type.
|
private java.lang.String |
name
The name of the field setter.
|
CONSTRUCTOR_INTERNAL_NAME, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER, UNDEFINED
EMPTY_MASK
NON_GENERIC_SIGNATURE
EMPTY_NAME, NO_NAME
Modifier | Constructor and Description |
---|---|
protected |
FieldSetter(TypeDescription instrumentedType,
FieldDescription fieldDescription,
java.lang.String suffix)
Creates a new field setter.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getBaseModifiers()
Returns the base modifiers, i.e.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
AnnotationValue<?,?> |
getDefaultValue()
Returns the method's default annotation value or
null if no default value is defined for this method. |
TypeList.Generic |
getExceptionTypes()
Returns the exception types of the described method.
|
java.lang.String |
getInternalName()
Returns the internal internalName of this byte code element.
|
ParameterList<ParameterDescription.InDefinedShape> |
getParameters()
Returns a list of this method's parameters.
|
TypeDescription.Generic |
getReturnType()
Returns the return type of the described method.
|
TypeList.Generic |
getTypeVariables()
Returns the type variables that are declared by this element.
|
getModifiers
asDefined, getReceiverType
accept, asSignatureToken, asToken, asTypeToken, equals, getActualModifiers, getActualModifiers, getActualModifiers, getActualName, getDefaultValue, getDescriptor, getEnclosingSource, getGenericSignature, getName, getStackSize, hashCode, isAccessibleTo, isBridgeCompatible, isConstantBootstrap, isConstantBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isGenerified, isInvokableOn, isInvokeBootstrap, isInvokeBootstrap, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, isVisibleTo, represents, represents, toGenericString, toString
findVariable
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, asTypeToken, getActualModifiers, getActualModifiers, getActualModifiers, getDefaultValue, getStackSize, isBridgeCompatible, isConstantBootstrap, isConstantBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isInvokeBootstrap, isInvokeBootstrap, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, represents, represents
accept, findVariable, getEnclosingSource, isGenerified
getMethodManifestation, getMethodStrictness, getSynchronizationState, isBridge, isNative, isStrict, isSynchronized, isVarArgs
isAbstract
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
getSyntheticState, isFinal, isSynthetic
toGenericString
getDescriptor, getGenericSignature, isAccessibleTo, isVisibleTo
getName
getActualName
asToken
private final TypeDescription instrumentedType
private final FieldDescription fieldDescription
private final java.lang.String name
protected FieldSetter(TypeDescription instrumentedType, FieldDescription fieldDescription, java.lang.String suffix)
instrumentedType
- The instrumented type.fieldDescription
- The field for which a setter is described.suffix
- The name suffix for the field setter method.public TypeDescription.Generic getReturnType()
public ParameterList<ParameterDescription.InDefinedShape> getParameters()
public TypeList.Generic getExceptionTypes()
public AnnotationValue<?,?> getDefaultValue()
null
if no default value is defined for this method.null
if no default value is defined for this method.public TypeList.Generic getTypeVariables()
public AnnotationList getDeclaredAnnotations()
public TypeDescription getDeclaringType()
null
if no such type exists.protected int getBaseModifiers()
Implementation.Context.Default.AbstractPropertyAccessorMethod
getBaseModifiers
in class Implementation.Context.Default.AbstractPropertyAccessorMethod
public java.lang.String getInternalName()