Package org.apache.calcite.linq4j.tree
Class Shuttle
java.lang.Object
org.apache.calcite.linq4j.tree.Shuttle
- Direct Known Subclasses:
ClassDeclarationFinder
,OptimizeShuttle
Extension to
Visitor
that returns a mutated tree.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpreVisit
(BinaryExpression binaryExpression) preVisit
(BlockStatement blockStatement) preVisit
(ClassDeclaration classDeclaration) preVisit
(ConditionalStatement conditionalStatement) preVisit
(ConstructorDeclaration constructorDeclaration) preVisit
(DeclarationStatement declarationStatement) preVisit
(FieldDeclaration fieldDeclaration) preVisit
(ForEachStatement forEachStatement) preVisit
(ForStatement forStatement) preVisit
(FunctionExpression functionExpression) preVisit
(GotoStatement gotoStatement) preVisit
(IndexExpression indexExpression) preVisit
(MemberExpression memberExpression) preVisit
(MethodCallExpression methodCallExpression) preVisit
(MethodDeclaration methodDeclaration) preVisit
(NewArrayExpression newArrayExpression) preVisit
(NewExpression newExpression) preVisit
(TernaryExpression ternaryExpression) preVisit
(ThrowStatement throwStatement) preVisit
(TryStatement tryStatement) preVisit
(TypeBinaryExpression typeBinaryExpression) preVisit
(UnaryExpression unaryExpression) preVisit
(WhileStatement whileStatement) visit
(BinaryExpression binaryExpression, Expression expression0, Expression expression1) visit
(BlockStatement blockStatement, List<Statement> statements) visit
(ClassDeclaration classDeclaration, List<MemberDeclaration> memberDeclarations) visit
(ConditionalStatement conditionalStatement, List<Node> list) visit
(ConstantExpression constantExpression) visit
(ConstructorDeclaration constructorDeclaration, BlockStatement body) visit
(DeclarationStatement declarationStatement, @Nullable Expression initializer) visit
(DefaultExpression defaultExpression) visit
(DynamicExpression dynamicExpression) visit
(FieldDeclaration fieldDeclaration, @Nullable Expression initializer) visit
(ForEachStatement forEachStatement, ParameterExpression parameter, Expression iterable, Statement body) visit
(ForStatement forStatement, List<DeclarationStatement> declarations, @Nullable Expression condition, @Nullable Expression post, Statement body) visit
(FunctionExpression functionExpression, @Nullable BlockStatement body) visit
(GotoStatement gotoStatement, @Nullable Expression expression) visit
(IndexExpression indexExpression, Expression array, List<Expression> indexExpressions) visit
(InvocationExpression invocationExpression) visit
(LabelStatement labelStatement) visit
(LambdaExpression lambdaExpression) visit
(ListInitExpression listInitExpression) visit
(MemberExpression memberExpression, @Nullable Expression expression) visit
(MemberInitExpression memberInitExpression) visit
(MethodCallExpression methodCallExpression, @Nullable Expression targetExpression, List<Expression> expressions) visit
(MethodDeclaration methodDeclaration, BlockStatement body) visit
(NewArrayExpression newArrayExpression, int dimension, @Nullable Expression bound, @Nullable List<Expression> expressions) visit
(NewExpression newExpression, List<Expression> arguments, @Nullable List<MemberDeclaration> memberDeclarations) visit
(ParameterExpression parameterExpression) visit
(SwitchStatement switchStatement) visit
(TernaryExpression ternaryExpression, Expression expression0, Expression expression1, Expression expression2) visit
(ThrowStatement throwStatement, Expression expression) visit
(TryStatement tryStatement, Statement body, List<CatchBlock> catchBlocks, @Nullable Statement fynally) visit
(TypeBinaryExpression typeBinaryExpression, Expression expression) visit
(UnaryExpression unaryExpression, Expression expression) visit
(WhileStatement whileStatement, Expression condition, Statement body)
-
Constructor Details
-
Shuttle
public Shuttle()
-
-
Method Details
-
preVisit
-
visit
-
preVisit
-
visit
-
preVisit
-
visit
-
preVisit
-
visit
-
visit
-
preVisit
-
visit
public ForStatement visit(ForStatement forStatement, List<DeclarationStatement> declarations, @Nullable Expression condition, @Nullable Expression post, Statement body) -
preVisit
-
visit
public ForEachStatement visit(ForEachStatement forEachStatement, ParameterExpression parameter, Expression iterable, Statement body) -
preVisit
-
visit
-
preVisit
-
visit
public DeclarationStatement visit(DeclarationStatement declarationStatement, @Nullable Expression initializer) -
visit
-
preVisit
-
visit
-
preVisit
-
visit
public Expression visit(BinaryExpression binaryExpression, Expression expression0, Expression expression1) -
preVisit
-
visit
public Expression visit(TernaryExpression ternaryExpression, Expression expression0, Expression expression1, Expression expression2) -
preVisit
-
visit
public Expression visit(IndexExpression indexExpression, Expression array, List<Expression> indexExpressions) -
preVisit
-
visit
-
preVisit
-
visit
public Expression visit(MethodCallExpression methodCallExpression, @Nullable Expression targetExpression, List<Expression> expressions) -
visit
-
visit
-
preVisit
-
visit
-
visit
-
preVisit
-
visit
public Expression visit(NewArrayExpression newArrayExpression, int dimension, @Nullable Expression bound, @Nullable List<Expression> expressions) -
visit
-
preVisit
-
visit
public Expression visit(NewExpression newExpression, List<Expression> arguments, @Nullable List<MemberDeclaration> memberDeclarations) -
visit
-
preVisit
-
visit
public Statement visit(TryStatement tryStatement, Statement body, List<CatchBlock> catchBlocks, @Nullable Statement fynally) -
visit
-
preVisit
-
visit
-
preVisit
-
visit
-
preVisit
-
visit
-
visit
-
visit
-
preVisit
-
visit
public ClassDeclaration visit(ClassDeclaration classDeclaration, List<MemberDeclaration> memberDeclarations) -
preVisit
-
visit
-