Top Description Inners Methods
net.bytebuddy.build

public Interface EntryPoint

Known Direct Implementers
net.bytebuddy.build.EntryPoint.Default, net.bytebuddy.build.EntryPoint.Unvalidated
Imports
net.bytebuddy.ByteBuddy, .ClassFileVersion, net.bytebuddy.description.type.TypeDescription, net.bytebuddy.dynamic.ClassFileLocator, .DynamicType, net.bytebuddy.dynamic.scaffold.MethodGraph, .TypeValidation, net.bytebuddy.dynamic.scaffold.inline.MethodNameTransformer, net.bytebuddy.implementation.Implementation

An entry point for a build tool which is responsible for the transformation's configuration.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
EntryPoint.Default

Default implementations for an entry point.

public static class
EntryPoint.Unvalidated

An entry point that wraps another entry point but disables validation.

Method Summary

Modifier and TypeMethod and Description
public ByteBuddy

Returns:

The Byte Buddy instance to use.
byteBuddy
(ClassFileVersion
The class file version in which to represent class files.
classFileVersion
)

Returns the Byte Buddy instance to use.

public DynamicType.Builder<?>

Returns:

A builder for the dynamic type to create.
transform
(TypeDescription
The type to transform.
typeDescription
,
ByteBuddy
The Byte Buddy instance to use.
byteBuddy
,
ClassFileLocator
The class file locator to use.
classFileLocator
,
MethodNameTransformer
The Method name transformer to use.
methodNameTransformer
)

Applies a transformation.

Method Detail

byteBuddyback to summary
public ByteBuddy byteBuddy(ClassFileVersion classFileVersion)

Returns the Byte Buddy instance to use.

Parameters
classFileVersion:ClassFileVersion

The class file version in which to represent class files.

Returns:ByteBuddy

The Byte Buddy instance to use.

transformback to summary
public DynamicType.Builder<?> transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)

Applies a transformation.

Parameters
typeDescription:TypeDescription

The type to transform.

byteBuddy:ByteBuddy

The Byte Buddy instance to use.

classFileLocator:ClassFileLocator

The class file locator to use.

methodNameTransformer:MethodNameTransformer

The Method name transformer to use.

Returns:DynamicType.Builder<?>

A builder for the dynamic type to create.

net.bytebuddy.build back to summary

public sealed Enum EntryPoint.Default

extends Enum<EntryPoint.Default>
implements EntryPoint
Class Inheritance
All Implemented Interfaces
net.bytebuddy.build.EntryPoint

Default implementations for an entry point.

Field Summary

Modifier and TypeField and Description
public static final EntryPoint.Default
DECORATE

An entry point that decorates a type and which only offers limited support for transformation by only allowing for the application of net.bytebuddy.asm.AsmVisitorWrappers while improving performance.

public static final EntryPoint.Default
REBASE

An entry point that rebases a type.

public static final EntryPoint.Default
REDEFINE

An entry point that redefines a type.

public static final EntryPoint.Default
REDEFINE_LOCAL

An entry point that redefines a type and which does not change the dynamic type's shape, i.e. does not add any methods or considers intercepting inherited methods.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EntryPoint.Default
public static EntryPoint.Default[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DECORATEback to summary
public static final EntryPoint.Default DECORATE

An entry point that decorates a type and which only offers limited support for transformation by only allowing for the application of net.bytebuddy.asm.AsmVisitorWrappers while improving performance.

REBASEback to summary
public static final EntryPoint.Default REBASE

An entry point that rebases a type.

REDEFINEback to summary
public static final EntryPoint.Default REDEFINE

An entry point that redefines a type.

REDEFINE_LOCALback to summary
public static final EntryPoint.Default REDEFINE_LOCAL

An entry point that redefines a type and which does not change the dynamic type's shape, i.e. does not add any methods or considers intercepting inherited methods.

Constructor Detail

Defaultback to summary
private Default()

Method Detail

valueOfback to summary
public static EntryPoint.Default valueOf(String name)
valuesback to summary
public static EntryPoint.Default[] values()
net.bytebuddy.build back to summary

public Class EntryPoint.Unvalidated

extends Object
implements EntryPoint
Class Inheritance
All Implemented Interfaces
net.bytebuddy.build.EntryPoint
Annotations
@Enhance

An entry point that wraps another entry point but disables validation.

Field Summary

Modifier and TypeField and Description
private final EntryPoint
delegate

The entry point to use.

Constructor Summary

AccessConstructor and Description
public
Unvalidated(EntryPoint
The entry point to use.
delegate
)

Creates a new entry point with disabled validation.

Method Summary

Modifier and TypeMethod and Description
public ByteBuddy
byteBuddy(ClassFileVersion
The class file version in which to represent class files.
classFileVersion
)

Implements net.bytebuddy.build.EntryPoint.byteBuddy.

Returns the Byte Buddy instance to use.
public DynamicType.Builder<?>
transform(TypeDescription
The type to transform.
typeDescription
,
ByteBuddy
The Byte Buddy instance to use.
byteBuddy
,
ClassFileLocator
The class file locator to use.
classFileLocator
,
MethodNameTransformer
The Method name transformer to use.
methodNameTransformer
)

Implements net.bytebuddy.build.EntryPoint.transform.

Applies a transformation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final EntryPoint delegate

The entry point to use.

Constructor Detail

Unvalidatedback to summary
public Unvalidated(EntryPoint delegate)

Creates a new entry point with disabled validation.

Parameters
delegate:EntryPoint

The entry point to use.

Method Detail

byteBuddyback to summary
public ByteBuddy byteBuddy(ClassFileVersion classFileVersion)

Implements net.bytebuddy.build.EntryPoint.byteBuddy.

Doc from net.bytebuddy.build.EntryPoint.byteBuddy.

Returns the Byte Buddy instance to use.

Parameters
classFileVersion:ClassFileVersion

The class file version in which to represent class files.

Returns:ByteBuddy

The Byte Buddy instance to use.

transformback to summary
public DynamicType.Builder<?> transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)

Implements net.bytebuddy.build.EntryPoint.transform.

Doc from net.bytebuddy.build.EntryPoint.transform.

Applies a transformation.

Parameters
typeDescription:TypeDescription

The type to transform.

byteBuddy:ByteBuddy

The Byte Buddy instance to use.

classFileLocator:ClassFileLocator

The class file locator to use.

methodNameTransformer:MethodNameTransformer

The Method name transformer to use.

Returns:DynamicType.Builder<?>

A builder for the dynamic type to create.