public static class MethodDescription.TypeSubstituting extends MethodDescription.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
protected class |
MethodDescription.TypeSubstituting.VariableRetainingDelegator
A visitor that only escalates to the actual visitor if a non-generic type is discovered or if a type variable
that is not declared by the represented method is discovered.
|
MethodDescription.AbstractBase, MethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.InDefinedShape, MethodDescription.Latent, MethodDescription.Token, MethodDescription.TypeSubstituting, MethodDescription.TypeTokenTypeVariableSource.Visitor<T>ByteCodeElement.Accessible, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>NamedElement.WithGenericName, NamedElement.WithRuntimeNameCONSTRUCTOR_INTERNAL_NAME, NO_DEFAULT_VALUE, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER, UNDEFINEDNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAMEEMPTY_MASK| Constructor and Description |
|---|
TypeSubstituting(GenericTypeDescription declaringType,
MethodDescription methodDescription,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> 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.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
GenericTypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
Object |
getDefaultValue()
Returns the default value of this method or
null if no such value exists. |
GenericTypeList |
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<?> |
getParameters()
Returns a list of this method's parameters.
|
GenericTypeDescription |
getReturnType()
Returns the return type of the described method.
|
GenericTypeList |
getTypeVariables()
Returns the type variables that are declared by this element.
|
accept, asToken, asToken, asTypeToken, equals, findVariable, getAdjustedModifiers, getDefaultValue, getDescriptor, getEnclosingSource, getGenericSignature, getName, getSourceCodeName, getStackSize, hashCode, isBootstrap, isBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, isVisibleTo, represents, represents, toGenericString, toStringisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatilepublic TypeSubstituting(GenericTypeDescription declaringType, MethodDescription methodDescription, GenericTypeDescription.Visitor<? extends GenericTypeDescription> 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 GenericTypeList getTypeVariables()
TypeVariableSourcepublic GenericTypeDescription getReturnType()
MethodDescriptionpublic ParameterList<?> getParameters()
MethodDescriptionpublic GenericTypeList getExceptionTypes()
MethodDescriptionpublic Object getDefaultValue()
MethodDescriptionnull if no such value exists. The returned values might be
of a different type than usual:
Class values are represented as
TypeDescriptions.Annotation values are represented as
AnnotationDescriptionsEnum values are represented as
EnumerationDescriptions.null.public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic GenericTypeDescription getDeclaringType()
DeclaredByTypenull if no such type exists.public int getModifiers()
ModifierReviewablepublic String getInternalName()
NamedElement.WithRuntimeNamepublic MethodDescription.InDefinedShape asDefined()
ByteCodeElement.TypeDependantCopyright © 2014–2015. All rights reserved.