Uses of Class
net.bytebuddy.ByteBuddy
-
Packages that use ByteBuddy 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. -
-
Uses of ByteBuddy in net.bytebuddy
Methods in net.bytebuddy that return ByteBuddy Modifier and Type Method Description ByteBuddy
ByteBuddy. ignore(ElementMatcher<? super MethodDescription> ignoredMethods)
Creates a new configuration where anyMethodDescription
that matches the provided method matcher is excluded from instrumentation.ByteBuddy
ByteBuddy. ignore(LatentMatcher<? super MethodDescription> ignoredMethods)
Creates a new configuration where anyMethodDescription
that matches the provided method matcher is excluded from instrumentation.ByteBuddy
ByteBuddy. with(ClassFileVersion classFileVersion)
Creates a new configuration where all class files that are not based on an existing class file are created using the supplied class file version.ByteBuddy
ByteBuddy. with(ClassWriterStrategy classWriterStrategy)
Creates a new configuration that applies the supplied class writer strategy.ByteBuddy
ByteBuddy. with(InstrumentedType.Factory instrumentedTypeFactory)
Configures Byte Buddy to use the specified factory for creatingInstrumentedType
s.ByteBuddy
ByteBuddy. with(MethodGraph.Compiler methodGraphCompiler)
Creates a new configuration where theMethodGraph.Compiler
is used for creating aMethodGraph
of the instrumented type.ByteBuddy
ByteBuddy. with(TypeValidation typeValidation)
Creates a new configuration that applies the supplied type validation.ByteBuddy
ByteBuddy. with(VisibilityBridgeStrategy visibilityBridgeStrategy)
Creates a new configuration that applies the supplied visibility bridge strategy.ByteBuddy
ByteBuddy. with(AnnotationRetention annotationRetention)
Creates a new configuration where annotations that are found in an existing class file are or are not preserved in the format they are discovered, i.e.ByteBuddy
ByteBuddy. with(AnnotationValueFilter.Factory annotationValueFilterFactory)
Creates a new configuration where annotation values are written according to the given filter factory.ByteBuddy
ByteBuddy. with(AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy)
Creates a new configuration where auxiliary types are named by applying the given naming strategy.ByteBuddy
ByteBuddy. with(Implementation.Context.Factory implementationContextFactory)
Creates a new configuration where theImplementation.Context
of any created type is a product of the given implementation context factory.ByteBuddy
ByteBuddy. with(NamingStrategy namingStrategy)
Creates a new configuration where new types are named by applying the given naming strategy. -
Uses of ByteBuddy in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as ByteBuddy Modifier and Type Field Description protected ByteBuddy
AgentBuilder.Default. byteBuddy
TheByteBuddy
instance to be used.private ByteBuddy
AgentBuilder.Default.ExecutingTransformer. byteBuddy
The Byte Buddy instance to be used.private ByteBuddy
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory. byteBuddy
The Byte Buddy instance to use for creating lambda objects.Methods in net.bytebuddy.agent.builder with parameters of type ByteBuddy Modifier and Type Method Description protected abstract void
AgentBuilder.LambdaInstrumentationStrategy. apply(ByteBuddy byteBuddy, java.lang.instrument.Instrumentation instrumentation, java.lang.instrument.ClassFileTransformer classFileTransformer)
Applies a transformation to lambda instances if applicable.DynamicType.Builder<?>
AgentBuilder.TypeStrategy. builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, java.lang.ClassLoader classLoader, JavaModule module, java.security.ProtectionDomain protectionDomain)
Creates a type builder for a given type.DynamicType.Builder<?>
AgentBuilder.TypeStrategy.ForBuildEntryPoint. builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, java.lang.ClassLoader classLoader, JavaModule module, java.security.ProtectionDomain protectionDomain)
Creates a type builder for a given type.ResettableClassFileTransformer
AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm. make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, java.util.List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock)
Creates a new class file transformer for the current VM.ResettableClassFileTransformer
AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm. make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, java.util.List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock)
Creates a new class file transformer for the current VM.ResettableClassFileTransformer
AgentBuilder.Default.ExecutingTransformer.Factory. make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, java.util.List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock)
Creates a new class file transformer for the current VM.AgentBuilder
AgentBuilder.Default.Delegator. with(ByteBuddy byteBuddy)
Defines the givenByteBuddy
instance to be used by the created agent.AgentBuilder
AgentBuilder.Default. with(ByteBuddy byteBuddy)
Defines the givenByteBuddy
instance to be used by the created agent.AgentBuilder
AgentBuilder. with(ByteBuddy byteBuddy)
Defines the givenByteBuddy
instance to be used by the created agent. -
Uses of ByteBuddy in net.bytebuddy.build
Fields in net.bytebuddy.build declared as ByteBuddy Modifier and Type Field Description private ByteBuddy
Plugin.Engine.Default. byteBuddy
The Byte Buddy instance to use.Methods in net.bytebuddy.build that return ByteBuddy Modifier and Type Method Description ByteBuddy
EntryPoint. byteBuddy(ClassFileVersion classFileVersion)
Returns the Byte Buddy instance to use.Methods in net.bytebuddy.build with parameters of type ByteBuddy Modifier and Type Method Description DynamicType.Builder<?>
Plugin.Engine.TypeStrategy. builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Creates a builder for a given type.DynamicType.Builder<?>
Plugin.Engine.TypeStrategy.ForEntryPoint. builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator)
Creates a builder for a given type.DynamicType.Builder<?>
EntryPoint. transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)
Applies a transformation.Plugin.Engine
Plugin.Engine.Default. with(ByteBuddy byteBuddy)
Defines a new Byte Buddy instance for usage for type creation.Plugin.Engine
Plugin.Engine. with(ByteBuddy byteBuddy)
Defines a new Byte Buddy instance for usage for type creation.Constructors in net.bytebuddy.build with parameters of type ByteBuddy Constructor Description Default(ByteBuddy byteBuddy)
Creates a new default plugin engine that rebases types and fails fast and on unresolved types and on live initializers.Default(ByteBuddy byteBuddy, Plugin.Engine.TypeStrategy typeStrategy)
Creates a new default plugin engine.Default(ByteBuddy byteBuddy, Plugin.Engine.TypeStrategy typeStrategy, Plugin.Engine.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, Plugin.Engine.Listener listener, Plugin.Engine.ErrorHandler errorHandler, Plugin.Engine.Dispatcher.Factory dispatcherFactory, ElementMatcher.Junction<? super TypeDescription> ignoredTypeMatcher)
Creates a new default plugin engine.
-