|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hamcrest.generator.QuickReferenceWriter
public class QuickReferenceWriter
Dumps a quick list of factory methods. Designed to be read by users, as a cheatsheet.
Constructor Summary | |
---|---|
QuickReferenceWriter()
|
|
QuickReferenceWriter(java.io.PrintStream out)
|
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
void |
setColumnPosition(int columnPosition)
|
void |
writeFooter()
Write any necessary code to finish the output. |
void |
writeHeader()
Write the code header. |
void |
writeMethod(java.lang.String generatedMethodName,
FactoryMethod factoryMethod)
Writes code that delegates to a method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuickReferenceWriter(java.io.PrintStream out)
public QuickReferenceWriter()
Method Detail |
---|
public void setColumnPosition(int columnPosition)
public void writeHeader() throws java.io.IOException
FactoryWriter
writeHeader
in interface FactoryWriter
java.io.IOException
public void writeMethod(java.lang.String generatedMethodName, FactoryMethod factoryMethod) throws java.io.IOException
FactoryWriter
writeMethod
in interface FactoryWriter
java.io.IOException
public void writeFooter() throws java.io.IOException
FactoryWriter
writeFooter
in interface FactoryWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |