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.PoolStrategy, AgentBuilder.RawMatcher, AgentBuilder.RedefinitionListenable, AgentBuilder.RedefinitionStrategy, AgentBuilder.Transformer, AgentBuilder.TransformerDecorator, AgentBuilder.TypeStrategy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Matchable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
and(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.S
and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.S
and(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.S
or(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.S
or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.S
or(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super java.lang.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, patchOnByteBuddyAgent, type, type, type, type, 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
-
-
-
-
Method Detail
-
and
public S and(ElementMatcher<? super TypeDescription> typeMatcher)
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 java.lang.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 java.lang.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
public S or(ElementMatcher<? super TypeDescription> typeMatcher)
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 java.lang.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 java.lang.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.
-
-