Class AccessibilityMatcher<T extends ByteCodeElement>

    • Field Detail

      • typeDescription

        private final TypeDescription typeDescription
        The type that is to be checked for its viewing rights.
    • Constructor Detail

      • AccessibilityMatcher

        public AccessibilityMatcher​(TypeDescription typeDescription)
        Creates a matcher that validates that a byte code element can be seen by a given type.
        Parameters:
        typeDescription - The type that is to be checked for its viewing rights.
    • 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