Class NameMatchers
- java.lang.Object
-
- io.opentelemetry.javaagent.extension.matcher.NameMatchers
-
public final class NameMatchers extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends net.bytebuddy.description.NamedElement>
net.bytebuddy.matcher.ElementMatcher.Junction<T>namedNoneOf(String... names)Matches aNamedElementfor its exact name's absence from a set.static <T extends net.bytebuddy.description.NamedElement>
net.bytebuddy.matcher.ElementMatcher.Junction<T>namedOneOf(String... names)Matches aNamedElementfor its exact name's membership of a set.static <T extends net.bytebuddy.description.NamedElement>
net.bytebuddy.matcher.ElementMatcher.Junction<T>namedOneOf(Collection<String> names)Matches aNamedElementfor its exact name's membership of a set.
-
-
-
Method Detail
-
namedOneOf
public static <T extends net.bytebuddy.description.NamedElement> net.bytebuddy.matcher.ElementMatcher.Junction<T> namedOneOf(String... names)
Matches aNamedElementfor its exact name's membership of a set.- Type Parameters:
T- The type of the matched object.- Parameters:
names- The expected names.- Returns:
- An element matcher checking if an element's exact name is a member of a set.
-
namedOneOf
public static <T extends net.bytebuddy.description.NamedElement> net.bytebuddy.matcher.ElementMatcher.Junction<T> namedOneOf(Collection<String> names)
Matches aNamedElementfor its exact name's membership of a set.- Type Parameters:
T- The type of the matched object.- Parameters:
names- The expected names.- Returns:
- An element matcher checking if an element's exact name is a member of a set.
-
namedNoneOf
public static <T extends net.bytebuddy.description.NamedElement> net.bytebuddy.matcher.ElementMatcher.Junction<T> namedNoneOf(String... names)
Matches aNamedElementfor its exact name's absence from a set.- Type Parameters:
T- The type of the matched object.- Parameters:
names- The expected names.- Returns:
- An element matcher checking if an element's exact name is absent from a set.
-
-