|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FactoryWriter
Writes syntactic sugar code for factories.
Implementations of this could include vanilla factory methods for Hamcrest matchers, wrapped factories for other libraries or factories in other languages (jython, jruby, groovy, etc).
writer.writeHeader(...); writer.writeMethod(...); writer.writeMethod(...); writer.writeMethod(...); ... writer.writeFooter(...); writer.close();
FactoryMethod
,
SugarGenerator
,
HamcrestFactoryWriter
Method Summary | |
---|---|
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 interface java.io.Closeable |
---|
close |
Methods inherited from interface java.io.Flushable |
---|
flush |
Method Detail |
---|
void writeHeader() throws java.io.IOException
java.io.IOException
void writeMethod(java.lang.String generatedMethodName, FactoryMethod factoryMethodToDelegateTo) throws java.io.IOException
generatedMethodName
- factoryMethodToDelegateTo
-
java.io.IOException
void writeFooter() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |