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 ByteBuddyByteBuddy. ignore(ElementMatcher<? super MethodDescription> ignoredMethods)Creates a new configuration where anyMethodDescriptionthat matches the provided method matcher is excluded from instrumentation.ByteBuddyByteBuddy. ignore(LatentMatcher<? super MethodDescription> ignoredMethods)Creates a new configuration where anyMethodDescriptionthat matches the provided method matcher is excluded from instrumentation.ByteBuddyByteBuddy. 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.ByteBuddyByteBuddy. with(InstrumentedType.Factory instrumentedTypeFactory)Configures Byte Buddy to use the specified factory for creatingInstrumentedTypes.ByteBuddyByteBuddy. with(MethodGraph.Compiler methodGraphCompiler)Creates a new configuration where theMethodGraph.Compileris used for creating aMethodGraphof the instrumented type.ByteBuddyByteBuddy. with(TypeValidation typeValidation)Creates a new configuration that applies the supplied type validation.ByteBuddyByteBuddy. 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.ByteBuddyByteBuddy. with(AnnotationValueFilter.Factory annotationValueFilterFactory)Creates a new configuration where annotation values are written according to the given filter factory.ByteBuddyByteBuddy. with(AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy)Creates a new configuration where auxiliary types are named by applying the given naming strategy.ByteBuddyByteBuddy. with(Implementation.Context.Factory implementationContextFactory)Creates a new configuration where theImplementation.Contextof any created type is a product of the given implementation context factory.ByteBuddyByteBuddy. 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 ByteBuddyAgentBuilder.Default. byteBuddyTheByteBuddyinstance to be used.Methods in net.bytebuddy.agent.builder with parameters of type ByteBuddy Modifier and Type Method Description byte[]AgentBuilder.Default.Transformation.Resolution. apply(AgentBuilder.InitializationStrategy initializationStrategy, ClassFileLocator classFileLocator, AgentBuilder.TypeStrategy typeStrategy, ByteBuddy byteBuddy, AgentBuilder.Default.NativeMethodStrategy methodNameTransformer, AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, java.security.AccessControlContext accessControlContext, AgentBuilder.Listener listener)Transforms a type or returnsnullif a type is not to be transformed.byte[]AgentBuilder.Default.Transformation.Resolution.Unresolved. apply(AgentBuilder.InitializationStrategy initializationStrategy, ClassFileLocator classFileLocator, AgentBuilder.TypeStrategy typeStrategy, ByteBuddy byteBuddy, AgentBuilder.Default.NativeMethodStrategy methodNameTransformer, AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, java.security.AccessControlContext accessControlContext, AgentBuilder.Listener listener)byte[]AgentBuilder.Default.Transformation.Simple.Resolution. apply(AgentBuilder.InitializationStrategy initializationStrategy, ClassFileLocator classFileLocator, AgentBuilder.TypeStrategy typeStrategy, ByteBuddy byteBuddy, AgentBuilder.Default.NativeMethodStrategy methodNameTransformer, AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, java.security.AccessControlContext accessControlContext, AgentBuilder.Listener listener)protected abstract voidAgentBuilder.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)Creates a type builder for a given type.DynamicType.Builder<?>AgentBuilder.TypeStrategy.ForBuildEntryPoint. builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)ResettableClassFileTransformerAgentBuilder.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.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoredTypeMatcher, AgentBuilder.Default.Transformation transformation, AgentBuilder.CircularityLock circularityLock)ResettableClassFileTransformerAgentBuilder.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.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoredTypeMatcher, AgentBuilder.Default.Transformation transformation, AgentBuilder.CircularityLock circularityLock)ResettableClassFileTransformerAgentBuilder.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.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoredTypeMatcher, AgentBuilder.Default.Transformation transformation, AgentBuilder.CircularityLock circularityLock)Creates a new class file transformer for the current VM.AgentBuilderAgentBuilder.Default.Delegator. with(ByteBuddy byteBuddy)AgentBuilderAgentBuilder.Default. with(ByteBuddy byteBuddy)AgentBuilderAgentBuilder. with(ByteBuddy byteBuddy)Defines the givenByteBuddyinstance to be used by the created agent. -
Uses of ByteBuddy in net.bytebuddy.build
Methods in net.bytebuddy.build that return ByteBuddy Modifier and Type Method Description ByteBuddyEntryPoint. 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<?>EntryPoint. transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer)Applies a transformation.
-