Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type. |
Modifier and Type | Method and Description |
---|---|
ByteBuddy |
ByteBuddy.withClassVisitor(ClassVisitorWrapper classVisitorWrapper)
Defines a new class visitor to be appended to the current collection of
ClassVisitor s
that are to be applied onto any creation process of a dynamic type. |
ByteBuddy |
ByteBuddy.MethodAnnotationTarget.withClassVisitor(ClassVisitorWrapper classVisitorWrapper) |
Modifier and Type | Class and Description |
---|---|
static class |
ClassVisitorWrapper.Chain
An ordered, immutable chain of
ClassVisitorWrapper s. |
Modifier and Type | Method and Description |
---|---|
ClassVisitorWrapper.Chain |
ClassVisitorWrapper.Chain.append(ClassVisitorWrapper classVisitorWrapper)
Adds a
ClassVisitorWrapper to the end of the chain such that the wrapped
ASM ClassVisitor will be applied after the other class visitors |
ClassVisitorWrapper.Chain |
ClassVisitorWrapper.Chain.prepend(ClassVisitorWrapper classVisitorWrapper)
Adds a
ClassVisitorWrapper to the beginning of the chain such that the wrapped
ASM ClassVisitor will be applied before the other class visitors. |
Constructor and Description |
---|
Chain(List<ClassVisitorWrapper> classVisitorWrappers)
Creates a new immutable chain based on an existing list of
ClassVisitorWrapper s
where no copy of the received list is made. |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DynamicType.Builder.classVisitor(ClassVisitorWrapper classVisitorWrapper)
Adds an additional ASM
ClassVisitor to this builder which will be applied in
the construction process of this dynamic type. |
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.classVisitor(ClassVisitorWrapper classVisitorWrapper) |
Modifier and Type | Method and Description |
---|---|
TypeWriter.InGeneralPhase<T> |
TypeWriter.Builder.build(ClassVisitorWrapper classVisitorWrapper)
Creates a new type writer and moves it to its general phase.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
SubclassDynamicTypeBuilder.classVisitor(ClassVisitorWrapper classVisitorWrapper) |
Copyright © 2014. All rights reserved.