Package net.bytebuddy.agent.builder
Class AgentBuilder.Matchable.AbstractBase<S extends AgentBuilder.Matchable<S>>
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.Matchable.AbstractBase<S>
-
- Type Parameters:
S
- The type that is produced by chaining a matcher.
- All Implemented Interfaces:
AgentBuilder.Matchable<S>
- Direct Known Subclasses:
AgentBuilder.Default.Delegator
- Enclosing interface:
- AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>
public abstract static class AgentBuilder.Matchable.AbstractBase<S extends AgentBuilder.Matchable<S>> extends java.lang.Object implements AgentBuilder.Matchable<S>
An abstract base implementation of a matchable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Matchable
AgentBuilder.Matchable.AbstractBase<S extends AgentBuilder.Matchable<S>>
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
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 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.
-
-