Class HasSuperTypeMatcher<T extends TypeDescription>

java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<T>
net.bytebuddy.matcher.HasSuperTypeMatcher<T>
Type Parameters:
T - The type of the matched entity.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class HasSuperTypeMatcher<T extends TypeDescription> extends ElementMatcher.Junction.AbstractBase<T>
An element matcher that matches a super type.
  • Field Details

  • Constructor Details

    • HasSuperTypeMatcher

      public HasSuperTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
      Creates a new matcher for a super type.
      Parameters:
      matcher - The matcher to apply to any super type of the matched type.
  • Method Details

    • matches

      public boolean matches(T target)
      Matches a target against this element matcher.
      Parameters:
      target - The instance to be matched.
      Returns:
      true if the given element is matched by this matcher or false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object