Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
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. |
net.bytebuddy.instrumentation |
The instrumentation package contains any logic for intercepting method calls.
|
Modifier and Type | Field and Description |
---|---|
protected BridgeMethodResolver.Factory |
ByteBuddy.bridgeMethodResolverFactory
The factory for generating a bridge method resolver for the current configuration.
|
Modifier and Type | Method and Description |
---|---|
BridgeMethodResolver.Factory |
ByteBuddy.getBridgeMethodResolverFactory()
Returns the factory for the bridge method resolver for the current configuration.
|
BridgeMethodResolver.Factory |
ByteBuddy.MethodAnnotationTarget.getBridgeMethodResolverFactory() |
Modifier and Type | Method and Description |
---|---|
ByteBuddy |
ByteBuddy.withBridgeMethodResolver(BridgeMethodResolver.Factory bridgeMethodResolverFactory)
Defines a bridge method resolver factory to be applied to this configuration.
|
ByteBuddy |
ByteBuddy.MethodAnnotationTarget.withBridgeMethodResolver(BridgeMethodResolver.Factory bridgeMethodResolverFactory) |
Constructor and Description |
---|
ByteBuddy(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
Defines a new
ByteBuddy configuration. |
MethodAnnotationTarget(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
MethodMatcher methodMatcher,
Instrumentation instrumentation,
MethodAttributeAppender.Factory attributeAppenderFactory)
Creates a new method annotation target.
|
OptionalMethodInterception(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
List<TypeDescription> interfaceTypes,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
ByteBuddy.Definable<TypeAttributeAppender> typeAttributeAppender,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
MethodMatcher methodMatcher)
Creates a new optional method interception.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DynamicType.Builder.bridgeMethodResolverFactory(BridgeMethodResolver.Factory bridgeMethodResolverFactory)
Defines a bridge method resolver factory to be applied to this type creation.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder.bridgeMethodResolverFactory(BridgeMethodResolver.Factory bridgeMethodResolverFactory) |
Modifier and Type | Class and Description |
---|---|
static class |
BridgeMethodResolver.NoOp
A no-op implementation of a
BridgeMethodResolver which is simply
returning the method it is given to resolve. |
static class |
BridgeMethodResolver.Simple.Factory
A factory for creating
BridgeMethodResolver.Simple instances
for any given default BridgeMethodResolver.Simple.ConflictHandler . |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
SubclassDynamicTypeBuilder.bridgeMethodResolverFactory(BridgeMethodResolver.Factory bridgeMethodResolverFactory) |
Constructor and Description |
---|
Factory(BridgeMethodResolver.Factory bridgeMethodResolverFactory)
Creates a new factory for a
SubclassInstrumentationTarget . |
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
TypeDescription superType,
List<? extends TypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a loaded class.
|
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
TypeDescription superType,
List<TypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
MethodMatcher ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
List<DynamicType.Builder.AbstractBase.FieldToken> fieldTokens,
List<DynamicType.Builder.AbstractBase.MethodToken> methodTokens,
ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a loaded class.
|
SubclassInstrumentationTarget(MethodLookupEngine.Finding finding,
BridgeMethodResolver.Factory bridgeMethodResolverFactory)
Creates a new subclass instrumentation target.
|
Constructor and Description |
---|
AbstractBase(MethodLookupEngine.Finding finding,
BridgeMethodResolver.Factory bridgeMethodResolverFactory)
Creates a new instrumentation target.
|
Copyright © 2014. All rights reserved.