@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.TypeStrategy.ForEntryPoint extends java.lang.Object implements Plugin.Engine.TypeStrategy
EntryPoint
for a build tool.Plugin.Engine.TypeStrategy.Default, Plugin.Engine.TypeStrategy.ForEntryPoint
Modifier and Type | Field and Description |
---|---|
private EntryPoint |
entryPoint
The represented entry point.
|
private MethodNameTransformer |
methodNameTransformer
A method name transformer to use for rebasements.
|
Constructor and Description |
---|
ForEntryPoint(EntryPoint entryPoint,
MethodNameTransformer methodNameTransformer)
Creates a new type stratrgy for an entry point.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
builder(ByteBuddy byteBuddy,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Creates a builder for a given type.
|
private final EntryPoint entryPoint
private final MethodNameTransformer methodNameTransformer
public ForEntryPoint(EntryPoint entryPoint, MethodNameTransformer methodNameTransformer)
entryPoint
- The represented entry point.methodNameTransformer
- A method name transformer to use for rebasements.public DynamicType.Builder<?> builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator)
builder
in interface Plugin.Engine.TypeStrategy
byteBuddy
- The Byte Buddy instance to use.typeDescription
- The type being transformed.classFileLocator
- A class file locator for finding the type's class file.