Class FieldTypeMatcher<T extends FieldDescription>

    • Constructor Detail

      • FieldTypeMatcher

        public FieldTypeMatcher​(ElementMatcher<? super TypeDescription.Generic> matcher)
        Creates a new matcher for a matched field's type.
        Parameters:
        matcher - The type matcher to apply to the matched field's type.
    • 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 FieldDescription>
        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