Class VisibilityMatcher<T extends ByteCodeElement>

Type Parameters:
T - The type of the matched entity.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class VisibilityMatcher<T extends ByteCodeElement> extends ElementMatcher.Junction.ForNonNullValues<T>
An element matcher that validates that a given byte code element is visible to a given type.
  • Field Details

    • typeDescription

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

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