Class DescriptorMatcher<T extends NamedElement.WithDescriptor>

    • Field Detail

      • matcher

        private final ElementMatcher<java.lang.String> matcher
        A matcher to apply to the descriptor.
    • Constructor Detail

      • DescriptorMatcher

        public DescriptorMatcher​(ElementMatcher<java.lang.String> matcher)
        Creates a new matcher for an element's descriptor.
        Parameters:
        matcher - A matcher to apply to the descriptor.
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object