Class AgentBuilder.Matchable.AbstractBase<S extends AgentBuilder.Matchable<S>>

    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • 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 interface AgentBuilder.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 interface AgentBuilder.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 interface AgentBuilder.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 by null.
        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 interface AgentBuilder.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 interface AgentBuilder.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 interface AgentBuilder.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 by null.
        Returns:
        A chained matcher.