public class NestedBlockBuilderImpl extends Object implements NestedBlockBuilder
RexNode expressions.| Constructor and Description |
|---|
NestedBlockBuilderImpl(BlockBuilder block)
Constructs nested block builders starting of a given code block.
|
| Modifier and Type | Method and Description |
|---|---|
BlockBuilder |
currentBlock()
Returns the current code block
|
Map<RexNode,Boolean> |
currentNullables()
Returns the current nullability state of rex nodes.
|
void |
exitBlock()
Leaves the current code block.
|
BlockBuilder |
nestBlock()
Starts nested code block.
|
void |
nestBlock(BlockBuilder block)
Uses given block as the new code context.
|
void |
nestBlock(BlockBuilder block,
Map<RexNode,Boolean> nullables)
Uses given block as the new code context and the map of nullability.
|
public NestedBlockBuilderImpl(BlockBuilder block)
block - root code blockpublic final BlockBuilder nestBlock()
nestBlock in interface NestedBlockBuilderpublic final void nestBlock(BlockBuilder block)
exitBlock() call.nestBlock in interface NestedBlockBuilderblock - new code blockexitBlock()public final void nestBlock(BlockBuilder block, Map<RexNode,Boolean> nullables)
exitBlock() call.nestBlock in interface NestedBlockBuilderblock - new code blocknullables - map of expression to its nullability stateexitBlock()public final BlockBuilder currentBlock()
currentBlock in interface NestedBlockBuilderpublic final Map<RexNode,Boolean> currentNullables()
currentNullables in interface NestedBlockBuilderpublic final void exitBlock()
exitBlock in interface NestedBlockBuildernestBlock()Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.