Uses of Class
org.apache.calcite.linq4j.tree.BlockStatement
-
Packages that use BlockStatement Package Description org.apache.calcite.linq4j.tree Object model for Java expressions. -
-
Uses of BlockStatement in org.apache.calcite.linq4j.tree
Fields in org.apache.calcite.linq4j.tree declared as BlockStatement Modifier and Type Field Description BlockStatementConstructorDeclaration. bodyBlockStatementFunctionExpression. bodyBlockStatementMethodDeclaration. bodyMethods in org.apache.calcite.linq4j.tree that return BlockStatement Modifier and Type Method Description BlockStatementBlockStatement. accept(Shuttle shuttle)static BlockStatementExpressions. block(Iterable<? extends Statement> statements)Creates a BlockExpression that contains the given statements.static BlockStatementExpressions. block(Type type, Iterable<? extends Statement> expressions)Creates a BlockExpression that contains the given expressions, has no variables and has specific result type.static BlockStatementExpressions. block(Type type, Statement... statements)Creates a BlockExpression that contains the given statements and has a specific result type, using varargs.static BlockStatementExpressions. block(Statement... statements)Creates a BlockExpression that contains the given statements, using varargs.static BlockStatementBlocks. create(Statement statement, BlockStatement block)Prepends a statement to a block.BlockStatementBlockBuilder. toBlock()Returns a block consisting of the current list of statements.static BlockStatementBlocks. toBlock(Node body)static BlockStatementBlocks. toFunctionBlock(Node body)private static BlockStatementBlocks. toFunctionBlock(Node body, boolean function)BlockStatementShuttle. visit(BlockStatement blockStatement, List<Statement> statements)Methods in org.apache.calcite.linq4j.tree with parameters of type BlockStatement Modifier and Type Method Description ExpressionBlockBuilder. append(String name, BlockStatement block)Appends a block to a list of statements and returns an expression (possibly a variable) that represents the result of the newly added block.ExpressionBlockBuilder. append(String name, BlockStatement block, boolean optimize)Appends an expression to a list of statements, optionally optimizing it to a variable if it is used more than once.static ConstructorDeclarationExpressions. constructorDecl(int modifier, Type declaredAgainst, Iterable<? extends ParameterExpression> parameters, BlockStatement body)Declares a constructor.static BlockStatementBlocks. create(Statement statement, BlockStatement block)Prepends a statement to a block.static <T,F extends Function<? extends T>>
FunctionExpression<F>Expressions. lambda(Class<F> type, BlockStatement body, Iterable<? extends ParameterExpression> parameters)Creates a LambdaExpression by first constructing a delegate type.static <T,F extends Function<? extends T>>
FunctionExpression<F>Expressions. lambda(Class<F> type, BlockStatement body, ParameterExpression... parameters)Creates a LambdaExpression by first constructing a delegate type, using varargs.static <F extends Function<?>>
FunctionExpression<F>Expressions. lambda(BlockStatement body, Iterable<? extends ParameterExpression> parameters)Creates a LambdaExpression by first constructing a delegate type.static <F extends Function<?>>
FunctionExpression<F>Expressions. lambda(BlockStatement body, ParameterExpression... parameters)Creates a LambdaExpression by first constructing a delegate type, using varargs.static MethodDeclarationExpressions. methodDecl(int modifier, Type resultType, String name, Iterable<? extends ParameterExpression> parameters, BlockStatement body)Declares a method.ShuttleShuttle. preVisit(BlockStatement blockStatement)static ExpressionBlocks. simple(BlockStatement block)Converts a simple "{ return expr; }" block into "expr"; otherwise throws.BlockStatementShuttle. visit(BlockStatement blockStatement, List<Statement> statements)MemberDeclarationShuttle. visit(ConstructorDeclaration constructorDeclaration, BlockStatement body)ExpressionShuttle. visit(FunctionExpression functionExpression, BlockStatement body)MemberDeclarationShuttle. visit(MethodDeclaration methodDeclaration, BlockStatement body)RVisitor. visit(BlockStatement blockStatement)RVisitorImpl. visit(BlockStatement blockStatement)Constructors in org.apache.calcite.linq4j.tree with parameters of type BlockStatement Constructor Description ConstructorDeclaration(int modifier, Type declaredAgainst, List<ParameterExpression> parameters, BlockStatement body)FunctionExpression(Class<F> type, F function, BlockStatement body, List<ParameterExpression> parameterList)FunctionExpression(Class<F> type, BlockStatement body, List<ParameterExpression> parameters)MethodDeclaration(int modifier, String name, Type resultType, List<ParameterExpression> parameters, BlockStatement body)
-