|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmock.core.constraint.IsInstanceOf
public class IsInstanceOf
Tests whether the value is an instance of a class.
Constructor Summary | |
---|---|
IsInstanceOf(Class theClass)
Creates a new instance of IsInstanceOf |
Method Summary | |
---|---|
StringBuffer |
describeTo(StringBuffer buffer)
Appends the description of this object to the buffer. |
boolean |
eval(Object arg)
Evaluates the constraint for argument o. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IsInstanceOf(Class theClass)
theClass
- The predicate evaluates to true for instances of this class
or one of its subclasses.Method Detail |
---|
public boolean eval(Object arg)
Constraint
eval
in interface Constraint
arg
- the object against which the constraint is evaluated.
true
if o meets the constraint,
false
if it does not.public StringBuffer describeTo(StringBuffer buffer)
SelfDescribing
describeTo
in interface SelfDescribing
buffer
- The buffer that the description is appended to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |