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:
- Matcher<T>, SelfDescribing
public class IsInstanceOf<T>
- extends BaseMatcher<T>
Tests whether the value is an instance of a class.
Constructor Summary |
IsInstanceOf(Class<T> theClass)
Creates a new instance of IsInstanceOf |
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(Description description)
instanceOf
public static <T> Matcher<T> instanceOf(Class<T> type)
- Is the value an instance of a particular type?