Interface AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>

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