Class WithStatementConsumerGenerator

java.lang.Object
com.fizzed.rocker.compiler.WithStatementConsumerGenerator

public class WithStatementConsumerGenerator extends Object
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 Details

    • WITH_BLOCKS_GENERATED_CLASS_NAME

      protected static final String WITH_BLOCKS_GENERATED_CLASS_NAME
      See Also:
    • withStatementsTypeCounts

      private final Set<Integer> withStatementsTypeCounts
  • Constructor Details

    • WithStatementConsumerGenerator

      public WithStatementConsumerGenerator()
  • Method Details