Class SubclassImplementationTarget

java.lang.Object
net.bytebuddy.implementation.Implementation.Target.AbstractBase
net.bytebuddy.dynamic.scaffold.subclass.SubclassImplementationTarget
All Implemented Interfaces:
Implementation.Target

@Enhance public class SubclassImplementationTarget extends Implementation.Target.AbstractBase
An implementation target for creating a subclass of a given type.
  • Field Details

  • Constructor Details

  • Method Details

    • invokeSuper

      Creates a special method invocation for invoking the super method of the given method.
      Parameters:
      token - A token of the method that is to be invoked as a super method.
      Returns:
      The corresponding special method invocation which might be illegal if the requested invocation is not legal.
    • invokeConstructor

      Resolves a special method invocation for a constructor invocation.
      Parameters:
      token - A token describing the constructor to be invoked.
      Returns:
      A special method invocation for a constructor representing the given method token, if available.
    • invokeMethod

      Resolves a special method invocation for a non-constructor invocation.
      Parameters:
      token - A token describing the method to be invoked.
      Returns:
      A special method invocation for a method representing the given method token, if available.
    • getOriginType

      public TypeDefinition getOriginType()
      Identifies the origin type of an implementation. The origin type describes the type that is subject to any form of enhancement. If a subclass of a given type is generated, the base type of this subclass describes the origin type. If a given type is redefined or rebased, the origin type is described by the instrumented type itself.
      Returns:
      The origin type of this implementation.