Class TypeSortMatcher<T extends TypeDefinition>

    • Constructor Detail

      • TypeSortMatcher

        public TypeSortMatcher​(ElementMatcher<? super TypeDefinition.Sort> matcher)
        Creates a new type sort matcher.
        Parameters:
        matcher - An element matcher to be applied to the type's sort.
    • Method Detail

      • doMatch

        protected boolean doMatch​(T target)
        Matches the supplied value if it was found not to be null.
        Specified by:
        doMatch in class ElementMatcher.Junction.ForNonNullValues<T extends TypeDefinition>
        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