Package net.bytebuddy.description.method
Interface MethodDescription.InDefinedShape
- All Superinterfaces:
AnnotationSource,ByteCodeElement,ByteCodeElement.Member,ByteCodeElement.TypeDependant<MethodDescription.InDefinedShape,,MethodDescription.Token> DeclaredByType,DeclaredByType.WithMandatoryDeclaration,MethodDescription,ModifierReviewable,ModifierReviewable.ForMethodDescription,ModifierReviewable.OfAbstraction,ModifierReviewable.OfByteCodeElement,NamedElement,NamedElement.WithDescriptor,NamedElement.WithGenericName,NamedElement.WithRuntimeName,TypeVariableSource
- All Known Implementing Classes:
Implementation.Context.Default.AbstractPropertyAccessorMethod,Implementation.Context.Default.AccessorMethod,Implementation.Context.Default.FieldGetter,Implementation.Context.Default.FieldSetter,MethodDescription.ForLoadedConstructor,MethodDescription.ForLoadedMethod,MethodDescription.InDefinedShape.AbstractBase,MethodDescription.InDefinedShape.AbstractBase.ForLoadedExecutable,MethodDescription.Latent,MethodDescription.Latent.TypeInitializer,MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor,MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod,TypePool.Default.LazyTypeDescription.LazyMethodDescription,TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge,TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget,TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge
- Enclosing interface:
MethodDescription
Represents a method in its defined shape, i.e. in the form it is defined by a class without its type variables being resolved.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract base implementation of a method description in its defined shape.Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface net.bytebuddy.description.ByteCodeElement
ByteCodeElement.Member, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>, S extends ByteCodeElement.Token<S>> Nested classes/interfaces inherited from interface net.bytebuddy.description.DeclaredByType
DeclaredByType.WithMandatoryDeclarationNested classes/interfaces inherited from interface net.bytebuddy.description.method.MethodDescription
MethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.InDefinedShape, MethodDescription.InGenericShape, MethodDescription.Latent, MethodDescription.SignatureToken, MethodDescription.Token, MethodDescription.TypeSubstituting, MethodDescription.TypeTokenNested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationNested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameNested classes/interfaces inherited from interface net.bytebuddy.description.TypeVariableSource
TypeVariableSource.Visitor<T> -
Field Summary
Fields inherited from interface net.bytebuddy.description.method.MethodDescription
CONSTRUCTOR_INTERNAL_NAME, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER, UNDEFINEDFields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASKFields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
NON_GENERIC_SIGNATURE -
Method Summary
Modifier and TypeMethodDescriptionReturns the declaring type of this instance.Returns a list of this method's parameters.Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotationsMethods inherited from interface net.bytebuddy.description.ByteCodeElement
isAccessibleTo, isVisibleToMethods inherited from interface net.bytebuddy.description.ByteCodeElement.TypeDependant
asDefined, asTokenMethods inherited from interface net.bytebuddy.description.method.MethodDescription
asSignatureToken, asTypeToken, getActualModifiers, getActualModifiers, getActualModifiers, getDefaultValue, getDefaultValue, getExceptionTypes, getReceiverType, getReturnType, getStackSize, isBridgeCompatible, isConstantBootstrap, isConstantBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isInvokeBootstrap, isInvokeBootstrap, isMethod, isSpecializableFor, isTypeInitializer, isVirtual, represents, representsMethods inherited from interface net.bytebuddy.description.ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSyntheticMethods inherited from interface net.bytebuddy.description.ModifierReviewable.ForMethodDescription
getMethodManifestation, getMethodStrictness, getSynchronizationState, isBridge, isNative, isStrict, isSynchronized, isVarArgsMethods inherited from interface net.bytebuddy.description.ModifierReviewable.OfAbstraction
isAbstractMethods inherited from interface net.bytebuddy.description.ModifierReviewable.OfByteCodeElement
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticMethods inherited from interface net.bytebuddy.description.NamedElement
getActualNameMethods inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
getDescriptor, getGenericSignatureMethods inherited from interface net.bytebuddy.description.NamedElement.WithGenericName
toGenericStringMethods inherited from interface net.bytebuddy.description.NamedElement.WithRuntimeName
getInternalName, getNameMethods inherited from interface net.bytebuddy.description.TypeVariableSource
accept, findExpectedVariable, findVariable, getEnclosingSource, getTypeVariables, isGenerified, isInferrable
-
Method Details
-
getDeclaringType
Returns the declaring type of this instance.- Specified by:
getDeclaringTypein interfaceDeclaredByType- Specified by:
getDeclaringTypein interfaceDeclaredByType.WithMandatoryDeclaration- Returns:
- The declaring type or
nullif no such type exists.
-
getParameters
ParameterList<ParameterDescription.InDefinedShape> getParameters()Returns a list of this method's parameters.- Specified by:
getParametersin interfaceMethodDescription- Returns:
- A list of this method's parameters.
-