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 classA matcher that considers the differential of two transformers' transformations.protected static classA matcher that matches any type that is touched by a transformer without being ignored.static classA conjunction of two raw matchers.static classA disjunction of two raw matchers.static classA raw matcher implementation that checks aTypeDescriptionand itsClassLoaderagainst two suitable matchers in order to determine if the matched type should be instrumented.static enumA raw matcher indicating the state of a type's class loading.static enumOnly matches loaded types that can be fully resolved.static classA raw matcher that inverts a raw matcher's result.static enumA matcher that always or never matches a type.Fields in net.bytebuddy.agent.builder declared as AgentBuilder.RawMatcherModifier and TypeFieldDescriptionprivate final AgentBuilder.RawMatcherAgentBuilder.Default.ExecutingTransformer.ignoreMatcherIdentifies types that should not be instrumented.protected final AgentBuilder.RawMatcherAgentBuilder.Default.ignoreMatcherIdentifies types that should not be instrumented.private final AgentBuilder.RawMatcherAgentBuilder.Default.Transformation.DifferentialMatcher.ignoreMatcherIdentifies types that should not be instrumented.private final AgentBuilder.RawMatcherAgentBuilder.Default.Transformation.SimpleMatcher.ignoreMatcherIdentifies types that should not be instrumented.private final AgentBuilder.RawMatcherAgentBuilder.Default.Transformation.matcherThe matcher to identify types for transformation.private final AgentBuilder.RawMatcherAgentBuilder.RawMatcher.Inversion.matcherThe matcher to invert.private final AgentBuilder.RawMatcherAgentBuilder.RedefinitionStrategy.Collector.matcherThe matcher to identify what types to redefine.private final AgentBuilder.RawMatcherAgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener.matcherThe matcher to apply for analyzing if a type is to be resubmitted.private final AgentBuilder.RawMatcherAgentBuilder.Default.Ignoring.rawMatcherA matcher for identifying types that should not be instrumented.private final AgentBuilder.RawMatcherAgentBuilder.Default.Transforming.rawMatcherThe 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.matchersThe matchers to apply in their application order.private final List<AgentBuilder.RawMatcher> AgentBuilder.RawMatcher.Disjunction.matchersThe matchers to apply in their application order.Methods in net.bytebuddy.agent.builder that return AgentBuilder.RawMatcherModifier and TypeMethodDescriptionprotected AgentBuilder.RawMatcherAgentBuilder.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 voidAgentBuilder.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 voidAgentBuilder.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 ResettableClassFileTransformerAgentBuilder.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.CollectorAgentBuilder.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.Transformers before loading this type.AgentBuilder.Default.type(AgentBuilder.RawMatcher matcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.AgentBuilder.type(AgentBuilder.RawMatcher matcher) Matches a type being loaded in order to apply the suppliedAgentBuilder.Transformers before loading this type.Constructors in net.bytebuddy.agent.builder with parameters of type AgentBuilder.RawMatcherModifierConstructorDescriptionprotectedCollector(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.protectedConjunction(AgentBuilder.RawMatcher... matcher) Creates a new conjunction of two raw matchers.protectedDefault(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.protectedDifferentialMatcher(AgentBuilder.RawMatcher ignoreMatcher, List<AgentBuilder.Default.Transformation> transformations, ResettableClassFileTransformer classFileTransformer) Creates a new differential matcher.protectedDisjunction(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.protectedForRedefinition(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.protectedForRetransformation(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.protectedIgnoring(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.protectedRedefining(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.protectedResubmissionInstallationListener(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.protectedSimpleMatcher(AgentBuilder.RawMatcher ignoreMatcher, List<AgentBuilder.Default.Transformation> transformations) Creates a new simple matcher.protectedTransformation(AgentBuilder.RawMatcher matcher, List<AgentBuilder.Transformer> transformers, boolean terminal) Creates a new transformation.protectedTransforming(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.RawMatcherModifierConstructorDescriptionprotectedConjunction(List<? extends AgentBuilder.RawMatcher> matchers) Creates a new conjunction of two raw matchers.protectedDisjunction(List<? extends AgentBuilder.RawMatcher> matchers) Creates a new conjunction of two raw matchers.