Package com.jcabi.matchers
Class XPathMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T>
com.jcabi.matchers.XPathMatcher<T>
- Type Parameters:
T
- Type of param
- All Implemented Interfaces:
org.hamcrest.Matcher<T>
,org.hamcrest.SelfDescribing
public final class XPathMatcher<T>
extends org.hamcrest.TypeSafeMatcher<T>
Matcher of XPath against a plain string.
Objects of this class are immutable and thread-safe.
- Since:
- 0.3.7
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
describeTo
(org.hamcrest.Description description) boolean
matchesSafely
(T input) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
XPathMatcher
Public ctor.- Parameters:
query
- The queryctx
- The context
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<T>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-