|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hamcrest.generator.EasyMock2FactoryWriter
public class EasyMock2FactoryWriter
FactoryWriter that outputs Java code which simply delegates all
factory methods to factory methods elsewhere. This is useful for grouping
lots of matcher classes into one class, so you know where to look to find
matchers.
FactoryWriter| Constructor Summary | |
|---|---|
EasyMock2FactoryWriter(java.io.Writer output,
java.lang.String javaPackageName,
java.lang.String javaClassName)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
writeFooter()
Write any necessary code to finish the output. |
void |
writeHeader()
Write the code header. |
void |
writeMethod(java.lang.String generatedMethodName,
FactoryMethod factoryMethodToDelegateTo)
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 EasyMock2FactoryWriter(java.io.Writer output,
java.lang.String javaPackageName,
java.lang.String javaClassName)
| Method Detail |
|---|
public void writeHeader()
throws java.io.IOException
FactoryWriter
writeHeader in interface FactoryWriterjava.io.IOException
public void writeFooter()
throws java.io.IOException
FactoryWriter
writeFooter in interface FactoryWriterjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOException
public void writeMethod(java.lang.String generatedMethodName,
FactoryMethod factoryMethodToDelegateTo)
throws java.io.IOException
FactoryWriter
writeMethod in interface FactoryWriterjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||