* * *

|  [ **Overview** ](../../overview-summary.html) |  [ **Package** ](package-summary.html) |  **Class** |  [ **Use** ](class-use/StringDescription.html) |  [ **Tree** ](package-tree.html) |  [ **Deprecated** ](../../deprecated-list.html) |  [ **Index** ](../../index-all.html) |  [ **Help** ](../../help-doc.html)  
---|---|---|---|---|---|---|---  
__  
[ **PREV CLASS** ](../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest") [ **NEXT CLASS** ](../../org/hamcrest/TypeSafeDiagnosingMatcher.html "class in org.hamcrest") |  [ **FRAMES** ](../../index.html?org/hamcrest/StringDescription.html) [ **NO FRAMES** ](StringDescription.html) [ **All Classes** ](../../allclasses-noframe.html)  
SUMMARY: NESTED | FIELD |  CONSTR  |  METHOD  |  DETAIL: FIELD |  CONSTR  |  METHOD   
  
* * *

##  org.hamcrest  
Class StringDescription

    
    
    java.lang.Object
      ![extended by ](../../resources/inherit.gif)[org.hamcrest.BaseDescription](../../org/hamcrest/BaseDescription.html "class in org.hamcrest")
          ![extended by ](../../resources/inherit.gif)**org.hamcrest.StringDescription**
    

**All Implemented Interfaces:**      [ Description
](../../org/hamcrest/Description.html "interface in org.hamcrest")

* * *
    
    
    public class **StringDescription** extends [BaseDescription](../../org/hamcrest/BaseDescription.html "class in org.hamcrest")

A [ ` Description ` ](../../org/hamcrest/Description.html "interface in
org.hamcrest") that is stored as a string.

* * *

**Nested Class Summary**  
---  
**Nested classes/interfaces inherited from interface org.hamcrest.[
Description ](../../org/hamcrest/Description.html "interface in org.hamcrest")
**  
---  
` [ Description.NullDescription
](../../org/hamcrest/Description.NullDescription.html "class in org.hamcrest")
`  
**Field Summary**  
---  
**Fields inherited from interface org.hamcrest.[ Description
](../../org/hamcrest/Description.html "interface in org.hamcrest") **  
---  
` [ NONE ](../../org/hamcrest/Description.html#NONE) `  
**Constructor Summary**  
---  
` **[ StringDescription
](../../org/hamcrest/StringDescription.html#StringDescription\(\)) ** () `  
  
` **[ StringDescription
](../../org/hamcrest/StringDescription.html#StringDescription\(java.lang.Appendable\))
** (java.lang.Appendable out) `  
  
**Method Summary**  
---  
` protected void ` |  ` **[ append ](../../org/hamcrest/StringDescription.html#append\(char\)) ** (char c) `   
Append the char  c  to the description.  
` protected void ` |  ` **[ append ](../../org/hamcrest/StringDescription.html#append\(java.lang.String\)) ** (java.lang.String str) `   
Append the String  str  to the description.  
` static java.lang.String ` |  ` **[ asString ](../../org/hamcrest/StringDescription.html#asString\(org.hamcrest.SelfDescribing\)) ** ( [ SelfDescribing ](../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest") selfDescribing) `   
Alias for [ ` toString(SelfDescribing) `
](../../org/hamcrest/StringDescription.html#toString\(org.hamcrest.SelfDescribing\))
.  
` java.lang.String ` |  ` **[ toString ](../../org/hamcrest/StringDescription.html#toString\(\)) ** () `   
Returns the description as a string.  
` static java.lang.String ` |  ` **[ toString ](../../org/hamcrest/StringDescription.html#toString\(org.hamcrest.SelfDescribing\)) ** ( [ SelfDescribing ](../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest") selfDescribing) `   
Return the description of a [ ` SelfDescribing `
](../../org/hamcrest/SelfDescribing.html "interface in org.hamcrest") object
as a String.  
**Methods inherited from class org.hamcrest.[ BaseDescription
](../../org/hamcrest/BaseDescription.html "class in org.hamcrest") **  
---  
` [ appendDescriptionOf
](../../org/hamcrest/BaseDescription.html#appendDescriptionOf\(org.hamcrest.SelfDescribing\))
, [ appendList
](../../org/hamcrest/BaseDescription.html#appendList\(java.lang.String,
java.lang.String, java.lang.String, java.lang.Iterable\)) , [