Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.Delegator.Matchable<S extends AgentBuilder.Matchable<S>>
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Default.Delegator
net.bytebuddy.agent.builder.AgentBuilder.Default.Delegator.Matchable<S>
- Type Parameters:
S
- The type that is produced by chaining a matcher.
- All Implemented Interfaces:
AgentBuilder
,AgentBuilder.Matchable<S>
- Direct Known Subclasses:
AgentBuilder.Default.Ignoring
,AgentBuilder.Default.Transforming
- Enclosing class:
AgentBuilder.Default.Delegator
protected abstract static class AgentBuilder.Default.Delegator.Matchable<S extends AgentBuilder.Matchable<S>>
extends AgentBuilder.Default.Delegator
implements AgentBuilder.Matchable<S>
An abstract base implementation of a matchable.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.agent.builder.AgentBuilder.Default.Delegator
AgentBuilder.Default.Delegator.Matchable<S extends AgentBuilder.Matchable<S>>
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder
AgentBuilder.CircularityLock, AgentBuilder.ClassFileBufferStrategy, AgentBuilder.Default, AgentBuilder.DescriptionStrategy, AgentBuilder.FallbackStrategy, AgentBuilder.Identified, AgentBuilder.Ignored, AgentBuilder.InitializationStrategy, AgentBuilder.InjectionStrategy, AgentBuilder.InstallationListener, AgentBuilder.LambdaInstrumentationStrategy, AgentBuilder.Listener, AgentBuilder.LocationStrategy, AgentBuilder.PatchMode, AgentBuilder.PoolStrategy, AgentBuilder.RawMatcher, AgentBuilder.RedefinitionListenable, AgentBuilder.RedefinitionStrategy, AgentBuilder.Transformer, AgentBuilder.TransformerDecorator, AgentBuilder.TypeStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand
(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.and
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.and
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.or
(ElementMatcher<? super TypeDescription> typeMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.or
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.or
(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.Methods inherited from class net.bytebuddy.agent.builder.AgentBuilder.Default.Delegator
assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeTo, assureReadEdgeTo, assureReadEdgeTo, disableClassFormatChanges, disableNativeMethodPrefix, enableNativeMethodPrefix, ignore, ignore, ignore, ignore, installOn, installOnByteBuddyAgent, makeRaw, materialize, patchOn, patchOn, patchOnByteBuddyAgent, patchOnByteBuddyAgent, type, type, type, type, warmUp, warmUp, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Matchable
and, or
-
Constructor Details
-
Matchable
protected Matchable()
-
-
Method Details
-
and
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched. When matching a type, class loaders are not considered.- Specified by:
and
in interfaceAgentBuilder.Matchable<S extends AgentBuilder.Matchable<S>>
- Parameters:
typeMatcher
- A matcher for the type being matched.- Returns:
- A chained matcher.
-
and
public S and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.- Specified by:
and
in interfaceAgentBuilder.Matchable<S extends AgentBuilder.Matchable<S>>
- Parameters:
typeMatcher
- A matcher for the type being matched.classLoaderMatcher
- A matcher for the type's class loader.- Returns:
- A chained matcher.
-
and
public S and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.- Specified by:
and
in interfaceAgentBuilder.Matchable<S extends AgentBuilder.Matchable<S>>
- Parameters:
typeMatcher
- A matcher for the type being matched.classLoaderMatcher
- A matcher for the type's class loader.moduleMatcher
- A matcher for the type's module. On a JVM that does not support modules, the Java module is represented bynull
.- Returns:
- A chained matcher.
-
or
Defines a matching that is positive if the previous matcher or the supplied matcher are matched. When matching a type, the class loader is not considered.- Specified by:
or
in interfaceAgentBuilder.Matchable<S extends AgentBuilder.Matchable<S>>
- Parameters:
typeMatcher
- A matcher for the type being matched.- Returns:
- A chained matcher.
-
or
public S or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.- Specified by:
or
in interfaceAgentBuilder.Matchable<S extends AgentBuilder.Matchable<S>>
- Parameters:
typeMatcher
- A matcher for the type being matched.classLoaderMatcher
- A matcher for the type's class loader.- Returns:
- A chained matcher.
-
or
public S or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher) Defines a matching that is positive if the previous matcher or the supplied matcher are matched.- Specified by:
or
in interfaceAgentBuilder.Matchable<S extends AgentBuilder.Matchable<S>>
- Parameters:
typeMatcher
- A matcher for the type being matched.classLoaderMatcher
- A matcher for the type's class loader.moduleMatcher
- A matcher for the type's module. On a JVM that does not support modules, the Java module is represented bynull
.- Returns:
- A chained matcher.
-