public static class MethodDescription.TypeSubstituting extends MethodDescription.AbstractBase implements MethodDescription.InGenericShape
MethodDescription.AbstractBase, MethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.InDefinedShape, MethodDescription.InGenericShape, MethodDescription.Latent, MethodDescription.SignatureToken, MethodDescription.Token, MethodDescription.TypeSubstituting, MethodDescription.TypeTokenTypeVariableSource.Visitor<T>ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameCONSTRUCTOR_INTERNAL_NAME, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER, UNDEFINEDEMPTY_MASKNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAME| Constructor and Description |
|---|
TypeSubstituting(TypeDescription.Generic declaringType,
MethodDescription methodDescription,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a method description with substituted method types.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDescription.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.
|
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.
|
String |
getInternalName()
Returns the internal internalName of this byte code element.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
ParameterList<ParameterDescription.InGenericShape> |
getParameters()
Returns a list of this method's parameters.
|
TypeDescription.Generic |
getReceiverType()
Returns this methods receiver type.
|
TypeDescription.Generic |
getReturnType()
Returns the return type of the described method.
|
TypeList.Generic |
getTypeVariables()
Returns the type variables that are declared by this element.
|
accept, asSignatureToken, asToken, asTypeToken, equals, getActualModifiers, getActualModifiers, getActualName, getDefaultValue, getDescriptor, getEnclosingSource, getGenericSignature, getName, getStackSize, hashCode, isBootstrap, isBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isGenericDeclaration, isInvokableOn, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, isVisibleTo, represents, represents, toGenericString, toStringfindVariableisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitasSignatureToken, asTypeToken, getActualModifiers, getActualModifiers, getDefaultValue, getStackSize, isBootstrap, isBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, represents, representsaccept, findVariable, getEnclosingSource, isGenericDeclarationisBridge, isNative, isStrict, isSynchronized, isVarArgsisAbstractisDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticisFinal, isSynthetictoGenericStringgetDescriptor, getGenericSignature, isVisibleTogetNamegetActualNameasTokenpublic TypeSubstituting(TypeDescription.Generic declaringType, MethodDescription methodDescription, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
declaringType - The type that is declaring the substituted method.methodDescription - The represented method description.visitor - A visitor that is applied to the method type.public TypeList.Generic getTypeVariables()
TypeVariableSourcegetTypeVariables in interface TypeVariableSourcepublic TypeDescription.Generic getReturnType()
MethodDescriptiongetReturnType in interface MethodDescriptionpublic ParameterList<ParameterDescription.InGenericShape> getParameters()
MethodDescriptiongetParameters in interface MethodDescriptiongetParameters in interface MethodDescription.InGenericShapepublic TypeList.Generic getExceptionTypes()
MethodDescriptiongetExceptionTypes in interface MethodDescriptionpublic AnnotationValue<?,?> getDefaultValue()
MethodDescriptionnull if no default value is defined for this method.getDefaultValue in interface MethodDescriptionnull if no default value is defined for this method.public TypeDescription.Generic getReceiverType()
MethodDescriptionstatic methods
where null is returned. Other than a receiver type that is provided by the Java reflection
API, Byte Buddy is capable of extracting annotations on type parameters of receiver types when
directly accessing a class file. Therefore, a receiver type might be parameterized.getReceiverType in interface MethodDescriptionpublic AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementgetDeclaredAnnotations in interface AnnotatedCodeElementpublic TypeDescription.Generic getDeclaringType()
DeclaredByTypegetDeclaringType in interface DeclaredByTypegetDeclaringType in interface MethodDescription.InGenericShapenull if no such type exists.public int getModifiers()
ModifierReviewablegetModifiers in interface ModifierReviewablepublic String getInternalName()
NamedElement.WithRuntimeNamegetInternalName in interface NamedElement.WithRuntimeNamepublic MethodDescription.InDefinedShape asDefined()
ByteCodeElement.TypeDependantasDefined in interface ByteCodeElement.TypeDependant<MethodDescription.InDefinedShape,MethodDescription.Token>Copyright © 2014–2016. All rights reserved.