Class MethodNameMatcher

java.lang.Object
org.hamcrest.BaseMatcher<Method>
org.hamcrest.TypeSafeMatcher<Method>
org.jmock.internal.matcher.MethodNameMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<Method>, org.hamcrest.SelfDescribing

public class MethodNameMatcher extends org.hamcrest.TypeSafeMatcher<Method>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) Pattern
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    describeMismatchSafely(Method item, org.hamcrest.Description mismatchDescription)
     
    void
    describeTo(org.hamcrest.Description description)
     
    boolean
     

    Methods inherited from class org.hamcrest.TypeSafeMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • MethodNameMatcher

      public MethodNameMatcher(String nameRegex)
  • Method Details

    • matchesSafely

      public boolean matchesSafely(Method method)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<Method>
    • describeMismatchSafely

      protected void describeMismatchSafely(Method item, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<Method>
    • describeTo

      public void describeTo(org.hamcrest.Description description)