public class IsInstanceOf extends java.lang.Object implements Constraint
| Constructor and Description |
|---|
IsInstanceOf(java.lang.Class theclass)
Creates a new instance of IsInstanceOf
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
eval(java.lang.Object arg)
Evaluates the constraint for argument o.
|
java.lang.String |
toString() |
public IsInstanceOf(java.lang.Class theclass)
theclass - The predicate evaluates to true for instances of this class
or one of its subclasses.public boolean eval(java.lang.Object arg)
Constrainteval in interface Constrainttrue if o meets the constraint,
false if it does not.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2002 Mock Objects. All Rights Reserved.