1package org.hamcrest; 2 3/** 4 * The ability of an object to describe itself. 5 */ 6public interface SelfDescribing { 7 /** 8 * Generates a description of the object. The description may be part of a 9 * a description of a larger object of which this is just a component, so it 10 * should be worded appropriately. 11 * 12 * @param description 13 * The description to be built or appended to. 14 */ 15 void describeTo(Description description); 16}