Interface NestedBlockBuilder

All Known Subinterfaces:
AggAddContext, AggResetContext, AggResultContext, WinAggAddContext, WinAggResetContext, WinAggResultContext
All Known Implementing Classes:
AggAddContextImpl, AggResetContextImpl, AggResultContextImpl, NestedBlockBuilderImpl, WinAggAddContextImpl, WinAggResetContextImpl, WinAggResultContextImpl

public interface NestedBlockBuilder
Allows to build nested code blocks with tracking of current context.
See Also:
  • Method Details

    • nestBlock

      BlockBuilder nestBlock()
      Starts nested code block. The resulting block can optimize expressions and reuse already calculated values from the parent blocks.
      Returns:
      new code block that can optimize expressions and reuse already calculated values from the parent blocks.
    • nestBlock

      void nestBlock(BlockBuilder block)
      Uses given block as the new code context. The current block will be restored after exitBlock() call.
      Parameters:
      block - new code block
      See Also:
    • currentBlock

      BlockBuilder currentBlock()
      Returns the current code block.
    • exitBlock

      void exitBlock()
      Leaves the current code block.
      See Also: