Class LatentMatcher.Resolved<S>

  • Type Parameters:
    S - The type of the matched element.
    All Implemented Interfaces:
    LatentMatcher<S>
    Enclosing interface:
    LatentMatcher<T>

    @Enhance
    public static class LatentMatcher.Resolved<S>
    extends java.lang.Object
    implements LatentMatcher<S>
    A latent matcher representing an already resolved ElementMatcher.
    • Field Detail

      • matcher

        private final ElementMatcher<? super S> matcher
        The resolved matcher.
    • Constructor Detail

      • Resolved

        public Resolved​(ElementMatcher<? super S> matcher)
        Creates a new resolved latent matcher.
        Parameters:
        matcher - The resolved matcher.
    • Method Detail

      • resolve

        public ElementMatcher<? super S> resolve​(TypeDescription typeDescription)
        Resolves the element matcher this instance represents for the supplied type description.
        Specified by:
        resolve in interface LatentMatcher<S>
        Parameters:
        typeDescription - The type description for which the represented matcher should be resolved.
        Returns:
        An ElementMatcher that represents this matcher's resolved form.