Class AccessibilityMatcher<T extends ByteCodeElement>

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

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

    • typeDescription

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

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