Class Plugin.Engine.TypeStrategy.ForEntryPoint

java.lang.Object
net.bytebuddy.build.Plugin.Engine.TypeStrategy.ForEntryPoint
All Implemented Interfaces:
Plugin.Engine.TypeStrategy
Enclosing interface:
Plugin.Engine.TypeStrategy

@Enhance public static class Plugin.Engine.TypeStrategy.ForEntryPoint extends Object implements Plugin.Engine.TypeStrategy
A type strategy that represents a given EntryPoint for a build tool.
  • Field Details

    • entryPoint

      private final EntryPoint entryPoint
      The represented entry point.
    • methodNameTransformer

      private final MethodNameTransformer methodNameTransformer
      A method name transformer to use for rebasements.
  • Constructor Details

    • ForEntryPoint

      public ForEntryPoint(EntryPoint entryPoint, MethodNameTransformer methodNameTransformer)
      Creates a new type stratrgy for an entry point.
      Parameters:
      entryPoint - The represented entry point.
      methodNameTransformer - A method name transformer to use for rebasements.
  • Method Details

    • builder

      public DynamicType.Builder<?> builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator)
      Creates a builder for a given type.
      Specified by:
      builder in interface Plugin.Engine.TypeStrategy
      Parameters:
      byteBuddy - The Byte Buddy instance to use.
      typeDescription - The type being transformed.
      classFileLocator - A class file locator for finding the type's class file.
      Returns:
      A dynamic type builder for the provided type.