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.Matchable, AgentBuilder.Default.Ignoring, AgentBuilder.Default.Transforming
Enclosing interface:
AgentBuilder

public static interface AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>
An abstraction for extending a matcher.
  • Method Details

    • 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 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 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 by null.
      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 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 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 by null.
      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.