Class SubTypeMatcher<T extends TypeDescription>

    • Field Detail

      • typeDescription

        private final TypeDescription typeDescription
        The type to be matched being a super type of the matched type.
    • Constructor Detail

      • SubTypeMatcher

        public SubTypeMatcher​(TypeDescription typeDescription)
        Creates a new matcher for matching its input for being a sub type of the given typeDescription.
        Parameters:
        typeDescription - The type to be matched being a super type of the matched type.
    • 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