Package com.fizzed.rocker.compiler
Class WithStatementConsumerGenerator
java.lang.Object
com.fizzed.rocker.compiler.WithStatementConsumerGenerator
We use this class to generate a withblock consumer while generating the template.
Since we allow 1 or more with assignments, we cannot rely on a static consumer anymore.
The JavaParser gathers the relevant WithBlocks it comes across, and at the end of the
template we generate the relevant consumers using this helper class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(JavaGenerator generator, Writer w) register(WithStatement statement)
-
Field Details
-
WITH_BLOCKS_GENERATED_CLASS_NAME
- See Also:
-
withStatementsTypeCounts
-
-
Constructor Details
-
WithStatementConsumerGenerator
public WithStatementConsumerGenerator()
-
-
Method Details
-
register
-
generate
- Throws:
IOException
-