Class VisibilityMatcher<T extends ByteCodeElement>

    • Field Detail

      • typeDescription

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

      • VisibilityMatcher

        public VisibilityMatcher​(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

      • 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 ByteCodeElement>
        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