protected static class Implementation.Context.Default.AccessorMethod 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>
ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
NamedElement.WithGenericName, NamedElement.WithRuntimeName
CONSTRUCTOR_INTERNAL_NAME, NO_DEFAULT_VALUE, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER, UNDEFINED
NON_GENERIC_SIGNATURE
EMPTY_NAME, NO_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
protected |
AccessorMethod(TypeDescription instrumentedType,
MethodDescription methodDescription,
String suffix)
Creates a new accessor method.
|
Modifier and Type | Method and Description |
---|---|
int |
getBaseModifiers()
Returns the base modifiers, i.e. the modifiers that define the accessed property's features.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
Object |
getDefaultValue()
Returns the default value of this method or
null if no such value exists. |
TypeList.Generic |
getExceptionTypes()
Returns the exception types of the described method.
|
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, getAdjustedModifiers, getDefaultValue, getDescriptor, getEnclosingSource, getGenericSignature, getName, getSourceCodeName, getStackSize, hashCode, isBootstrap, isBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isGenericDeclaration, isInvokableOn, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, isVisibleTo, represents, represents, toGenericString, toString
findVariable
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, asTypeToken, getAdjustedModifiers, getDefaultValue, getStackSize, isBootstrap, isBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, represents, represents
accept, findVariable, getEnclosingSource, isGenericDeclaration
getDescriptor, getGenericSignature, isVisibleTo
getName
getSourceCodeName
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
toGenericString
asToken
protected AccessorMethod(TypeDescription instrumentedType, MethodDescription methodDescription, String suffix)
instrumentedType
- The instrumented type.methodDescription
- The method that is being accessed.suffix
- The suffix to append to the accessor method's name.public TypeDescription.Generic getReturnType()
MethodDescription
public ParameterList<ParameterDescription.InDefinedShape> getParameters()
MethodDescription
public TypeList.Generic getExceptionTypes()
MethodDescription
public Object getDefaultValue()
MethodDescription
null
if no such value exists. The returned values might be
of a different type than usual:
Class
values are represented as
TypeDescription
s.Annotation
values are represented as
AnnotationDescription
sEnum
values are represented as
EnumerationDescription
s.null
.public TypeList.Generic getTypeVariables()
TypeVariableSource
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public TypeDescription getDeclaringType()
DeclaredByType
null
if no such type exists.public int getBaseModifiers()
Implementation.Context.Default.AbstractPropertyAccessorMethod
getBaseModifiers
in class Implementation.Context.Default.AbstractPropertyAccessorMethod
public String getInternalName()
NamedElement.WithRuntimeName
Copyright © 2014–2016. All rights reserved.