@HashCodeAndEqualsPlugin.Enhance protected static enum ByteBuddy.RecordConstructorStrategy extends Enum<ByteBuddy.RecordConstructorStrategy> implements ConstructorStrategy, Implementation
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ByteBuddy.RecordConstructorStrategy.Appender
A byte code appender for accessors and the record constructor.
|
ConstructorStrategy.Default, ConstructorStrategy.ForDefaultConstructorImplementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.TargetInstrumentedType.Prepareable.NoOp| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
ByteCodeAppender |
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
List<MethodDescription.Token> |
extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.
|
MethodRegistry |
inject(TypeDescription instrumentedType,
MethodRegistry methodRegistry)
Returns a method registry that is capable of creating byte code for the constructors that were
provided by the
ConstructorStrategy.extractConstructors(TypeDescription)
method of this instance. |
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
static ByteBuddy.RecordConstructorStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteBuddy.RecordConstructorStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteBuddy.RecordConstructorStrategy INSTANCE
public static ByteBuddy.RecordConstructorStrategy[] values()
for (ByteBuddy.RecordConstructorStrategy c : ByteBuddy.RecordConstructorStrategy.values()) System.out.println(c);
public static ByteBuddy.RecordConstructorStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic List<MethodDescription.Token> extractConstructors(TypeDescription instrumentedType)
extractConstructors in interface ConstructorStrategyinstrumentedType - The type for which the constructors should be created.public MethodRegistry inject(TypeDescription instrumentedType, MethodRegistry methodRegistry)
ConstructorStrategy.extractConstructors(TypeDescription)
method of this instance.inject in interface ConstructorStrategyinstrumentedType - The instrumented type.methodRegistry - The original method registry.public ByteCodeAppender appender(Implementation.Target implementationTarget)
appender in interface ImplementationimplementationTarget - The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType).public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.Copyright © 2014–2025. All rights reserved.