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.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() |
MethodNameTransformer |
AgentBuilder.Default.NativeMethodStrategy.ForPrefix.resolve() |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
AgentBuilder.TypeStrategy.builder(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Creates a type builder for a given type.
|
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.Token> rebaseableMethodTokens,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver.
|
static MethodRebaseResolver.Resolution |
MethodRebaseResolver.Resolution.ForRebasedMethod.of(MethodDescription.InDefinedShape methodDescription,
MethodNameTransformer methodNameTransformer)
Resolves a rebasement for the provided method.
|
Constructor and Description |
---|
RebasedMethod(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,
LatentMatcher<? super MethodDescription> ignoredMethods,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.
|
RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
Implementation.Context.Factory implementationContextFactory,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
LatentMatcher<? super MethodDescription> ignoredMethods,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Creates a rebase dynamic type builder.
|
Copyright © 2014–2016. All rights reserved.