Class ErasureMatcher<T extends TypeDefinition>

Type Parameters:
T - The type of the matched entity.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class ErasureMatcher<T extends TypeDefinition> extends ElementMatcher.Junction.ForNonNullValues<T>
An element matcher that matches its argument's TypeDescription.Generic raw type against the given matcher for a TypeDescription. As a wildcard does not define an erasure, a runtime exception is thrown when this matcher is applied to a wildcard.
  • Field Details

  • Constructor Details

    • ErasureMatcher

      public ErasureMatcher(ElementMatcher<? super TypeDescription> matcher)
      Creates a new raw type matcher.
      Parameters:
      matcher - The matcher to apply to the raw type.
  • Method Details