Class NamedMatcher<T>

java.lang.Object
io.opentelemetry.javaagent.tooling.util.NamedMatcher<T>
All Implemented Interfaces:
io.opentelemetry.javaagent.extension.matcher.internal.DelegatingMatcher, net.bytebuddy.matcher.ElementMatcher<T>

public class NamedMatcher<T> extends Object implements net.bytebuddy.matcher.ElementMatcher<T>, io.opentelemetry.javaagent.extension.matcher.internal.DelegatingMatcher
A matcher wrapper that adds specified name to the output of toString to allow easy identification of where the given matcher originates from.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher

    net.bytebuddy.matcher.ElementMatcher.Junction<S extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamedMatcher(String name, net.bytebuddy.matcher.ElementMatcher<T> delegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.bytebuddy.matcher.ElementMatcher<?>
     
    boolean
    matches(T target)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NamedMatcher

      public NamedMatcher(String name, net.bytebuddy.matcher.ElementMatcher<T> delegate)
  • Method Details

    • matches

      public boolean matches(T target)
      Specified by:
      matches in interface net.bytebuddy.matcher.ElementMatcher<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDelegate

      public net.bytebuddy.matcher.ElementMatcher<?> getDelegate()
      Specified by:
      getDelegate in interface io.opentelemetry.javaagent.extension.matcher.internal.DelegatingMatcher