Package org.apache.calcite.linq4j.tree
Class Blocks
java.lang.Object
org.apache.calcite.linq4j.tree.Blocks
Helper methods concerning
BlockStatement
s.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockStatement
create
(Statement statement, BlockStatement block) Prepends a statement to a block.static Expression
simple
(BlockStatement block) Converts a simple "{ return expr; }" block into "expr"; otherwise throws.static BlockStatement
static BlockStatement
toFunctionBlock
(Node body)
-
Method Details
-
toFunctionBlock
-
toBlock
-
create
Prepends a statement to a block. -
simple
Converts a simple "{ return expr; }" block into "expr"; otherwise throws.
-