Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.trino.sql.tree.ExpressionRewriter Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.trino.sql.tree;
public class ExpressionRewriter
{
protected Expression rewriteExpression(Expression node, C context, ExpressionTreeRewriter treeRewriter)
{
return null;
}
public Expression rewriteRow(Row node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteArithmeticUnary(ArithmeticUnaryExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteArithmeticBinary(ArithmeticBinaryExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteComparisonExpression(ComparisonExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteBetweenPredicate(BetweenPredicate node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteLogicalExpression(LogicalExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteNotExpression(NotExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteIsNullPredicate(IsNullPredicate node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteIsNotNullPredicate(IsNotNullPredicate node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteNullIfExpression(NullIfExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteIfExpression(IfExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteSearchedCaseExpression(SearchedCaseExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteSimpleCaseExpression(SimpleCaseExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteWhenClause(WhenClause node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCoalesceExpression(CoalesceExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteInListExpression(InListExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteFunctionCall(FunctionCall node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteWindowOperation(WindowOperation node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteLambdaExpression(LambdaExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteLikePredicate(LikePredicate node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteInPredicate(InPredicate node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteExists(ExistsPredicate node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteSubqueryExpression(SubqueryExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteLiteral(Literal node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteArray(Array node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteSubscriptExpression(SubscriptExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteIdentifier(Identifier node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteDereferenceExpression(DereferenceExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteExtract(Extract node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCurrentDate(CurrentDate node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCurrentTime(CurrentTime node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCurrentTimestamp(CurrentTimestamp node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteLocalTime(LocalTime node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteLocalTimestamp(LocalTimestamp node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCast(Cast node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteTryExpression(TryExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteAtTimeZone(AtTimeZone node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCurrentCatalog(CurrentCatalog node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCurrentSchema(CurrentSchema node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCurrentUser(CurrentUser node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteCurrentPath(CurrentPath node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteTrim(Trim node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteFormat(Format node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteFieldReference(FieldReference node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteParameter(Parameter node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteQuantifiedComparison(QuantifiedComparisonExpression node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteGroupingOperation(GroupingOperation node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteGenericDataType(GenericDataType node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteRowDataType(RowDataType node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteDateTimeDataType(DateTimeDataType node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteIntervalDayTimeDataType(IntervalDayTimeDataType node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteJsonExists(JsonExists node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteJsonValue(JsonValue node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteJsonQuery(JsonQuery node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteJsonObject(JsonObject node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
public Expression rewriteJsonArray(JsonArray node, C context, ExpressionTreeRewriter treeRewriter)
{
return rewriteExpression(node, context, treeRewriter);
}
}