Class Plugin.ForElementMatcher

    • Constructor Detail

      • ForElementMatcher

        protected ForElementMatcher​(ElementMatcher<? super TypeDescription> matcher)
        Creates a new plugin that matches types using an element matcher.
        Parameters:
        matcher - The element matcher to apply.
    • Method Detail

      • matches

        public boolean matches​(TypeDescription target)
        Matches a target against this element matcher.
        Specified by:
        matches in interface ElementMatcher<TypeDescription>
        Parameters:
        target - The instance to be matched.
        Returns:
        true if the given element is matched by this matcher or false otherwise.