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.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current code block.voidLeaves the current code block.Starts nested code block.voidnestBlock(BlockBuilder block) Uses given block as the new code context.
-
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
Uses given block as the new code context. The current block will be restored afterexitBlock()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:
-