Uses of Interface
net.bytebuddy.agent.builder.AgentBuilder.RawMatcher
Packages that use AgentBuilder.RawMatcher
Package
Description
An agent builder is used to easily implement load-time class-transformations using a Java agent.
-
Uses of AgentBuilder.RawMatcher in net.bytebuddy.agent.builder
Classes in net.bytebuddy.agent.builder that implement AgentBuilder.RawMatcherModifier and TypeClassDescriptionprotected static class
A matcher that considers the differential of two transformers' transformations.protected static class
A matcher that matches any type that is touched by a transformer without being ignored.static class
A conjunction of two raw matchers.static class
A disjunction of two raw matchers.static class
A raw matcher implementation that checks aTypeDescription
and itsClassLoader
against two suitable matchers in order to determine if the matched type should be instrumented.static enum
A raw matcher indicating the state of a type's class loading.static enum
Only matches loaded types that can be fully resolved.static class
A raw matcher that inverts a raw matcher's result.static enum
A matcher that always or never matches a type.Fields in net.bytebuddy.agent.builder declared as AgentBuilder.RawMatcherModifier and TypeFieldDescriptionprivate final AgentBuilder.RawMatcher
AgentBuilder.Default.ExecutingTransformer.ignoreMatcher
Identifies types that should not be instrumented.protected final AgentBuilder.RawMatcher
AgentBuilder.Default.ignoreMatcher
Identifies types that should not be instrumented.private final AgentBuilder.RawMatcher
AgentBuilder.Default.Transformation.DifferentialMatcher.ignoreMatcher
Identifies types that should not be instrumented.private final AgentBuilder.RawMatcher
AgentBuilder.Default.Transformation.SimpleMatcher.ignoreMatcher
Identifies types that should not be instrumented.private final AgentBuilder.RawMatcher
AgentBuilder.Default.Transformation.matcher
The matcher to identify types for transformation.private final AgentBuilder.RawMatcher
AgentBuilder.RawMatcher.Inversion.matcher
The matcher to invert.private final AgentBuilder.RawMatcher
AgentBuilder.RedefinitionStrategy.Collector.matcher
The matcher to identify what types to redefine.private final AgentBuilder.RawMatcher
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener.matcher
The matcher to apply for analyzing if a type is to be resubmitted.private final AgentBuilder.RawMatcher
AgentBuilder.Default.Ignoring.rawMatcher
A matcher for identifying types that should not be instrumented.private final AgentBuilder.RawMatcher
AgentBuilder.Default.Transforming.rawMatcher
The supplied raw matcher.Fields in net.bytebuddy.agent.builder with type parameters of type AgentBuilder.RawMatcherModifier and TypeFieldDescriptionprivate final List
<AgentBuilder.RawMatcher> AgentBuilder.RawMatcher.Conjunction.matchers
The matchers to apply in their application order.private final List
<AgentBuilder.RawMatcher> AgentBuilder.RawMatcher.Disjunction.matchers
The matchers to apply in their application order.Methods in net.bytebuddy.agent.builder that return AgentBuilder.RawMatcherModifier and TypeMethodDescriptionprotected AgentBuilder.RawMatcher
AgentBuilder.Default.Transformation.getMatcher()
Returns the matcher to identify types for transformation.AgentBuilder.RawMatcher.ForResolvableTypes.inverted()
Returns an inverted version of this matcher.Methods in net.bytebuddy.agent.builder with parameters of type AgentBuilder.RawMatcherModifier and TypeMethodDescriptionAgentBuilder.Default.Ignoring.and
(AgentBuilder.RawMatcher rawMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Default.Transforming.and
(AgentBuilder.RawMatcher rawMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.AgentBuilder.Matchable.and
(AgentBuilder.RawMatcher rawMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.protected void
AgentBuilder.RedefinitionStrategy.apply
(Instrumentation instrumentation, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.Listener listener, AgentBuilder.RedefinitionStrategy.Listener redefinitionListener, AgentBuilder.RawMatcher matcher, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.CircularityLock circularityLock) Applies this redefinition strategy by submitting all loaded types to redefinition.AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.apply
(Instrumentation instrumentation, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.Listener listener, AgentBuilder.InstallationListener installationListener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.RawMatcher matcher, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener) Invoked upon installation of an agent builder.AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Disabled.apply
(Instrumentation instrumentation, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.Listener listener, AgentBuilder.InstallationListener installationListener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.RawMatcher matcher, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener) Invoked upon installation of an agent builder.AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.apply
(Instrumentation instrumentation, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.Listener listener, AgentBuilder.InstallationListener installationListener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.RawMatcher matcher, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener) Invoked upon installation of an agent builder.private void
AgentBuilder.RedefinitionStrategy.Collector.doConsider
(AgentBuilder.RawMatcher matcher, AgentBuilder.Listener listener, TypeDescription typeDescription, Class<?> type, Class<?> classBeingRedefined, JavaModule module, boolean modifiable) Does consider the retransformation or redefinition of a loaded type.private ResettableClassFileTransformer
AgentBuilder.Default.doInstall
(Instrumentation instrumentation, AgentBuilder.RawMatcher matcher, AgentBuilder.PatchMode.Handler handler) Installs the class file transformer.AgentBuilder.Default.Delegator.ignore
(AgentBuilder.RawMatcher rawMatcher) Excludes any type that is matched by the raw matcher provided to this method.AgentBuilder.Default.ignore
(AgentBuilder.RawMatcher rawMatcher) Excludes any type that is matched by the raw matcher provided to this method.AgentBuilder.ignore
(AgentBuilder.RawMatcher rawMatcher) Excludes any type that is matched by the raw matcher provided to this method.AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm.make
(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, 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, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer for the current VM.AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm.make
(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, 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, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer for the current VM.AgentBuilder.Default.ExecutingTransformer.Factory.make
(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, 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, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer for the current VM.protected abstract AgentBuilder.RedefinitionStrategy.Collector
AgentBuilder.RedefinitionStrategy.make
(AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.Listener listener, AgentBuilder.RawMatcher matcher, AgentBuilder.CircularityLock circularityLock) Creates a collector instance that is responsible for collecting loaded classes for potential retransformation.AgentBuilder.Default.Ignoring.or
(AgentBuilder.RawMatcher rawMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Default.Transforming.or
(AgentBuilder.RawMatcher rawMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Matchable.or
(AgentBuilder.RawMatcher rawMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.AgentBuilder.Default.Delegator.type
(AgentBuilder.RawMatcher matcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.Default.type
(AgentBuilder.RawMatcher matcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.AgentBuilder.type
(AgentBuilder.RawMatcher matcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformer
s before loading this type.Constructors in net.bytebuddy.agent.builder with parameters of type AgentBuilder.RawMatcherModifierConstructorDescriptionprotected
Collector
(AgentBuilder.RawMatcher matcher, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.Listener listener, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.CircularityLock circularityLock) Creates a new collector.protected
Conjunction
(AgentBuilder.RawMatcher... matcher) Creates a new conjunction of two raw matchers.protected
Default
(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.Default.WarmupStrategy warmupStrategy, AgentBuilder.TransformerDecorator transformerDecorator, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionListener, AgentBuilder.RedefinitionStrategy.ResubmissionStrategy redefinitionResubmissionStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, List<AgentBuilder.Default.Transformation> transformations) Creates a new default agent builder.protected
DifferentialMatcher
(AgentBuilder.RawMatcher ignoreMatcher, List<AgentBuilder.Default.Transformation> transformations, ResettableClassFileTransformer classFileTransformer) Creates a new differential matcher.protected
Disjunction
(AgentBuilder.RawMatcher... matcher) Creates a new conjunction of two raw matchers.ExecutingTransformer
(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, 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, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer.protected
ForRedefinition
(AgentBuilder.RawMatcher matcher, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.Listener listener, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.CircularityLock circularityLock) Creates a new collector for redefinition.protected
ForRetransformation
(AgentBuilder.RawMatcher matcher, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.Listener listener, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.CircularityLock circularityLock) Creates a collector to apply a retransformation.protected
Ignoring
(AgentBuilder.RawMatcher rawMatcher) Creates a new agent builder for further specifying what types to ignore.Inversion
(AgentBuilder.RawMatcher matcher) Creates a raw matcher that inverts its result.protected
Redefining
(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.Default.WarmupStrategy warmupStrategy, AgentBuilder.TransformerDecorator transformerDecorator, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionListener, AgentBuilder.RedefinitionStrategy.ResubmissionStrategy redefinitionResubmissionStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, List<AgentBuilder.Default.Transformation> transformations) Creates a new default agent builder that allows for refinement of the redefinition strategy.protected
ResubmissionInstallationListener
(Instrumentation instrumentation, AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.Listener listener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.RawMatcher matcher, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener, ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey, Set<String>> types) Creates a new resubmission job.protected
SimpleMatcher
(AgentBuilder.RawMatcher ignoreMatcher, List<AgentBuilder.Default.Transformation> transformations) Creates a new simple matcher.protected
Transformation
(AgentBuilder.RawMatcher matcher, List<AgentBuilder.Transformer> transformers, boolean terminal) Creates a new transformation.protected
Transforming
(AgentBuilder.RawMatcher rawMatcher, List<AgentBuilder.Transformer> transformers, boolean terminal) Creates a new matched default agent builder.Constructor parameters in net.bytebuddy.agent.builder with type arguments of type AgentBuilder.RawMatcherModifierConstructorDescriptionprotected
Conjunction
(List<? extends AgentBuilder.RawMatcher> matchers) Creates a new conjunction of two raw matchers.protected
Disjunction
(List<? extends AgentBuilder.RawMatcher> matchers) Creates a new conjunction of two raw matchers.