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 java.lang.Object implements Plugin.Engine.TypeStrategy
A type strategy that represents a givenEntryPoint
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
Fields Modifier and Type Field Description private EntryPoint
entryPoint
The represented entry point.private MethodNameTransformer
methodNameTransformer
A method name transformer to use for rebasements.
-
Constructor Summary
Constructors Constructor Description ForEntryPoint(EntryPoint entryPoint, MethodNameTransformer methodNameTransformer)
Creates a new type stratrgy for an entry point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DynamicType.Builder<?>
builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Creates a builder for a given type.
-
-
-
Field Detail
-
entryPoint
private final EntryPoint entryPoint
The represented entry point.
-
methodNameTransformer
private final MethodNameTransformer methodNameTransformer
A method name transformer to use for rebasements.
-
-
Constructor Detail
-
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 Detail
-
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.
-
-