Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
net.bytebuddy.build |
A package for types that allow for applying Byte Buddy transformation during a build process.
|
net.bytebuddy.dynamic.scaffold.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
Modifier and Type | Method and Description |
---|---|
<T> DynamicType.Builder<T> |
ByteBuddy.rebase(Class<T> type,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the
rebased type's class such that the class's original can be invoked from the new method implementations.
|
<T> DynamicType.Builder<T> |
ByteBuddy.rebase(TypeDescription type,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the
rebased type's class such that the class's original can be invoked from the new method implementations.
|
Modifier and Type | Method and Description |
---|---|
MethodNameTransformer |
AgentBuilder.Default.NativeMethodStrategy.resolve()
Resolves the method name transformer for this strategy.
|
MethodNameTransformer |
AgentBuilder.Default.NativeMethodStrategy.Disabled.resolve()
Resolves the method name transformer for this strategy.
|
MethodNameTransformer |
AgentBuilder.Default.NativeMethodStrategy.ForPrefix.resolve()
Resolves the method name transformer for this strategy.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
AgentBuilder.TypeStrategy.builder(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Creates a type builder for a given type.
|
DynamicType.Builder<?> |
AgentBuilder.TypeStrategy.ForBuildEntryPoint.builder(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Creates a type builder for a given type.
|
Modifier and Type | Method and Description |
---|---|
static Plugin.Engine |
Plugin.Engine.Default.of(EntryPoint entryPoint,
ClassFileVersion classFileVersion,
MethodNameTransformer methodNameTransformer)
Creates a plugin engine from an
EntryPoint . |
DynamicType.Builder<?> |
EntryPoint.transform(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Applies a transformation.
|
DynamicType.Builder<?> |
EntryPoint.Unvalidated.transform(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Applies a transformation.
|
Constructor and Description |
---|
ForEntryPoint(EntryPoint entryPoint,
MethodNameTransformer methodNameTransformer)
Creates a new type stratrgy for an entry point.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodNameTransformer.Prefixing
A method name transformer that adds a fixed prefix to an original method name.
|
static class |
MethodNameTransformer.Suffixing
A method name transformer that adds a fixed suffix to an original method name, separated by a
$ . |
Modifier and Type | Method and Description |
---|---|
static MethodNameTransformer |
MethodNameTransformer.Suffixing.withRandomSuffix()
Creates a new suffixing method name transformer which adds a default suffix with a random name component.
|
Modifier and Type | Method and Description |
---|---|
static MethodRebaseResolver |
MethodRebaseResolver.Default.make(TypeDescription instrumentedType,
Set<? extends MethodDescription.SignatureToken> rebaseables,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver.
|
static MethodRebaseResolver.Resolution |
MethodRebaseResolver.Resolution.ForRebasedMethod.of(TypeDescription instrumentedType,
MethodDescription.InDefinedShape methodDescription,
MethodNameTransformer methodNameTransformer)
Resolves a rebasement for the provided method.
|
Constructor and Description |
---|
RebasedMethod(TypeDescription instrumentedType,
MethodDescription.InDefinedShape methodDescription,
MethodNameTransformer methodNameTransformer)
Creates a new rebased method.
|
RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.
|
RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
RecordComponentRegistry recordComponentRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
ClassWriterStrategy classWriterStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods,
List<? extends DynamicType> auxiliaryTypes,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.
|
Copyright © 2014–2024. All rights reserved.