Class DefinedShapeMatcher<T extends ByteCodeElement.TypeDependant<S,​?>,​S extends ByteCodeElement.TypeDependant<?,​?>>

    • Constructor Detail

      • DefinedShapeMatcher

        public DefinedShapeMatcher​(ElementMatcher<? super S> matcher)
        Creates a new matcher for a byte code element's defined shape.
        Parameters:
        matcher - The matcher to apply onto the defined shape of the matched entity.
    • 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