org.eclipse.swtbot.eclipse.gef.finder.matchers
Class IsInstanceOf<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.eclipse.gef.finder.matchers.IsInstanceOf<T>
- All Implemented Interfaces:
- org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing
public class IsInstanceOf<T>
- extends org.hamcrest.BaseMatcher<T>
Tests whether the value is an instance of a class.
|
Constructor Summary |
IsInstanceOf(Class<T> theClass)
Creates a new instance of IsInstanceOf |
|
Method Summary |
void |
describeTo(org.hamcrest.Description description)
|
static
<T> org.hamcrest.Matcher<T> |
|
instanceOf(Class<T> type)
Is the value an instance of a particular type? |
boolean |
matches(Object item)
|
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
IsInstanceOf
public IsInstanceOf(Class<T> theClass)
- Creates a new instance of IsInstanceOf
- Parameters:
theClass - The predicate evaluates to true for instances of this class
or one of its subclasses.
matches
public boolean matches(Object item)
describeTo
public void describeTo(org.hamcrest.Description description)
instanceOf
public static <T> org.hamcrest.Matcher<T> instanceOf(Class<T> type)
- Is the value an instance of a particular type?