Package net.bytebuddy.agent.builder
Interface AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>
-
- Type Parameters:
T
- The type that is produced by chaining a matcher.
- All Known Subinterfaces:
AgentBuilder.Identified.Narrowable
,AgentBuilder.Ignored
- All Known Implementing Classes:
AgentBuilder.Default.Delegator
,AgentBuilder.Default.Ignoring
,AgentBuilder.Default.Transforming
,AgentBuilder.Matchable.AbstractBase
- Enclosing interface:
- AgentBuilder
public static interface AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>
An abstraction for extending a matcher.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AgentBuilder.Matchable.AbstractBase<S extends AgentBuilder.Matchable<S>>
An abstract base implementation of a matchable.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
and(AgentBuilder.RawMatcher rawMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.T
and(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.T
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.T
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.T
or(AgentBuilder.RawMatcher rawMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.T
or(ElementMatcher<? super TypeDescription> typeMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.T
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.T
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.
-
-
-
Method Detail
-
and
T 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.- Parameters:
typeMatcher
- A matcher for the type being matched.- Returns:
- A chained matcher.
-
and
T 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.- Parameters:
typeMatcher
- A matcher for the type being matched.classLoaderMatcher
- A matcher for the type's class loader.- Returns:
- A chained matcher.
-
and
T 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.- 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.
-
and
T and(AgentBuilder.RawMatcher rawMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.- Parameters:
rawMatcher
- A raw matcher for the type being matched.- Returns:
- A chained matcher.
-
or
T 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.- Parameters:
typeMatcher
- A matcher for the type being matched.- Returns:
- A chained matcher.
-
or
T 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.- Parameters:
typeMatcher
- A matcher for the type being matched.classLoaderMatcher
- A matcher for the type's class loader.- Returns:
- A chained matcher.
-
or
T 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.- 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
T or(AgentBuilder.RawMatcher rawMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.- Parameters:
rawMatcher
- A raw matcher for the type being matched.- Returns:
- A chained matcher.
-
-