Class IgnoreFailedTypeMatcher

java.lang.Object
io.opentelemetry.javaagent.tooling.util.IgnoreFailedTypeMatcher
All Implemented Interfaces:
io.opentelemetry.javaagent.extension.matcher.internal.DelegatingMatcher, net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>

public class IgnoreFailedTypeMatcher extends Object implements net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>, io.opentelemetry.javaagent.extension.matcher.internal.DelegatingMatcher
A matcher wrapper that skips matching and returns false when it is known that loading the matched type will fail. If we know that the class that is currently loading can't be loaded successfully we can skip transforming it.
  • 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
    IgnoreFailedTypeMatcher(net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription> delegate)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • IgnoreFailedTypeMatcher

      public IgnoreFailedTypeMatcher(net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription> delegate)
  • Method Details

    • matches

      public boolean matches(net.bytebuddy.description.type.TypeDescription target)
      Specified by:
      matches in interface net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>
    • 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