org.eclipse.swtbot.swt.finder.matchers
Class AbstractMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<T>
- All Implemented Interfaces:
- Matcher<T>, SelfDescribing
- Direct Known Subclasses:
- AllOf, AnyOf, InGroup, InUIThread, WidgetOfType, WithId, WithItem, WithLabel, WithMnemonic, WithPartId, WithPartName, WithPerspectiveId, WithPerspectiveLabel, WithRegex, WithStyle, WithText, WithTooltip
public abstract class AbstractMatcher<T>
- extends BaseMatcher<T>
A matcher that logs the result of matches. The match is done by subclasses.
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
Field Summary |
static org.apache.log4j.Logger |
log
|
Method Summary |
protected abstract boolean |
doMatch(Object item)
Subclasses must override, this is the actual method that does the matching |
boolean |
matches(Object item)
|
log
public static final org.apache.log4j.Logger log
AbstractMatcher
public AbstractMatcher()
matches
public boolean matches(Object item)
doMatch
protected abstract boolean doMatch(Object item)
- Subclasses must override, this is the actual method that does the matching
- Parameters:
item
- the item to match.
- Returns:
true
if the item matches, false
otherwise.