Package net.bytebuddy.build
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.TypeStrategy
Plugin.Engine.TypeStrategy.Default, Plugin.Engine.TypeStrategy.ForEntryPoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntryPoint
The represented entry point.private final MethodNameTransformer
A method name transformer to use for rebasements. -
Constructor Summary
ConstructorsConstructorDescriptionForEntryPoint
(EntryPoint entryPoint, MethodNameTransformer methodNameTransformer) Creates a new type stratrgy for an entry point. -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator) Creates a builder for a given type.
-
Field Details
-
entryPoint
The represented entry point. -
methodNameTransformer
A method name transformer to use for rebasements.
-
-
Constructor Details
-
ForEntryPoint
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 interfacePlugin.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.
-