Class MethodDescription.InDefinedShape.AbstractBase

All Implemented Interfaces:
AnnotationSource, ByteCodeElement, ByteCodeElement.TypeDependant<MethodDescription.InDefinedShape,MethodDescription.Token>, DeclaredByType, MethodDescription, MethodDescription.InDefinedShape, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, NamedElement, NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithRuntimeName, TypeVariableSource
Direct Known Subclasses:
Implementation.Context.Default.AbstractPropertyAccessorMethod, 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.InDefinedShape

public abstract static class MethodDescription.InDefinedShape.AbstractBase extends MethodDescription.AbstractBase implements MethodDescription.InDefinedShape
An abstract base implementation of a method description in its defined shape.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • asDefined

      Returns this type dependant in its defined shape, i.e. the form it is declared in and without its type variable's resolved.
      Specified by:
      asDefined in interface ByteCodeElement.TypeDependant<MethodDescription.InDefinedShape,MethodDescription.Token>
      Returns:
      This type dependant in its defined shape.
    • getReceiverType

      public TypeDescription.Generic getReceiverType()
      Returns this methods receiver type. A receiver type is undefined for static 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.
      Specified by:
      getReceiverType in interface MethodDescription
      Returns:
      This method's (annotated) receiver type.