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
ConstructorsConstructorDescriptionIgnoreFailedTypeMatcher(net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription> delegate) -
Method Summary
-
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:
matchesin interfacenet.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription>
-
toString
-
getDelegate
public net.bytebuddy.matcher.ElementMatcher<?> getDelegate()- Specified by:
getDelegatein interfaceio.opentelemetry.javaagent.extension.matcher.internal.DelegatingMatcher
-