Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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`

Constructor Summary
`AbstractMatcher()`

Method Summary
`protected abstract boolean` | `doMatch(Object item)` Subclasses must override, this is the actual method that does the matching
`boolean` | `matches(Object item)`

Methods inherited from class org.hamcrest.BaseMatcher
`_dont_implement_Matcher___instead_extend_BaseMatcher_, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface org.hamcrest.SelfDescribing
`describeTo`

Field Detail

### log

    public static final org.apache.log4j.Logger log

Constructor Detail

### AbstractMatcher

    public AbstractMatcher()

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD