org.openrewrite.python.PythonIsoVisitor Maven / Gradle / Ivy
/*
* Copyright 2023 the original author or authors.
*
* 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
*
* https://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 org.openrewrite.python;
import org.openrewrite.java.tree.Expression;
import org.openrewrite.java.tree.J;
import org.openrewrite.java.tree.Statement;
import org.openrewrite.python.tree.Py;
public class PythonIsoVisitor
extends PythonVisitor
{
@Override
public Py.Async visitAsync(Py.Async async, P p) {
return (Py.Async) super.visitAsync(async, p);
}
@Override
public Py.Await visitAwait(Py.Await ogAwait, P p) {
return (Py.Await) super.visitAwait(ogAwait, p);
}
@Override
public Py.Binary visitBinary(Py.Binary binary, P p) {
return (Py.Binary) super.visitBinary(binary, p);
}
@Override
public Py.ChainedAssignment visitChainedAssignment(Py.ChainedAssignment chainedAssignment, P p) {
return (Py.ChainedAssignment) super.visitChainedAssignment(chainedAssignment, p);
}
@Override
public Py.CollectionLiteral visitCollectionLiteral(Py.CollectionLiteral coll, P p) {
return (Py.CollectionLiteral) super.visitCollectionLiteral(coll, p);
}
@Override
public Py.CompilationUnit visitCompilationUnit(Py.CompilationUnit cu, P p) {
return (Py.CompilationUnit) super.visitCompilationUnit(cu, p);
}
@Override
public Py.ComprehensionExpression visitComprehensionExpression(Py.ComprehensionExpression ogComp, P p) {
return (Py.ComprehensionExpression) super.visitComprehensionExpression(ogComp, p);
}
@Override
public Py.ComprehensionExpression.Clause visitComprehensionClause(Py.ComprehensionExpression.Clause ogClause, P p) {
return (Py.ComprehensionExpression.Clause) super.visitComprehensionClause(ogClause, p);
}
@Override
public Py.ComprehensionExpression.Condition visitComprehensionCondition(Py.ComprehensionExpression.Condition ogCondition, P p) {
return (Py.ComprehensionExpression.Condition) super.visitComprehensionCondition(ogCondition, p);
}
@Override
public Py.Del visitDel(Py.Del ogDel, P p) {
return (Py.Del) super.visitDel(ogDel, p);
}
@Override
public Py.DictLiteral visitDictLiteral(Py.DictLiteral dict, P p) {
return (Py.DictLiteral) super.visitDictLiteral(dict, p);
}
@Override
public Py.ErrorFrom visitErrorFrom(Py.ErrorFrom ogExpr, P p) {
return (Py.ErrorFrom) super.visitErrorFrom(ogExpr, p);
}
@Override
public Py.ExceptionType visitExceptionType(Py.ExceptionType ogType, P p) {
return (Py.ExceptionType) super.visitExceptionType(ogType, p);
}
@Override
public Py.ExpressionStatement visitExpressionStatement(Py.ExpressionStatement expressionStatement, P p) {
return (Py.ExpressionStatement) super.visitExpressionStatement(expressionStatement, p);
}
@Override
public Py.FormattedString visitFormattedString(Py.FormattedString fString, P p) {
return (Py.FormattedString) super.visitFormattedString(fString, p);
}
@Override
public Py.FormattedString.Value visitFormattedStringValue(Py.FormattedString.Value value, P p) {
return (Py.FormattedString.Value) super.visitFormattedStringValue(value, p);
}
@Override
public Py.KeyValue visitKeyValue(Py.KeyValue keyValue, P p) {
return (Py.KeyValue) super.visitKeyValue(keyValue, p);
}
@Override
public Py.LiteralType visitLiteralType(Py.LiteralType literalType, P p) {
return (Py.LiteralType) super.visitLiteralType(literalType, p);
}
@Override
public Py.MatchCase visitMatchCase(Py.MatchCase ogMatch, P p) {
return (Py.MatchCase) super.visitMatchCase(ogMatch, p);
}
@Override
public Py.MatchCase.Pattern visitMatchCasePattern(Py.MatchCase.Pattern ogPattern, P p) {
return (Py.MatchCase.Pattern) super.visitMatchCasePattern(ogPattern, p);
}
@Override
public Py.MultiImport visitMultiImport(Py.MultiImport multiImport_, P p) {
return (Py.MultiImport) super.visitMultiImport(multiImport_, p);
}
@Override
public Py.NamedArgument visitNamedArgument(Py.NamedArgument ogArg, P p) {
return (Py.NamedArgument) super.visitNamedArgument(ogArg, p);
}
@Override
public Py.Pass visitPass(Py.Pass ogPass, P p) {
return (Py.Pass) super.visitPass(ogPass, p);
}
@Override
public Py.Slice visitSlice(Py.Slice slice, P p) {
return (Py.Slice) super.visitSlice(slice, p);
}
@Override
public Py.SpecialParameter visitSpecialParameter(Py.SpecialParameter ogParam, P p) {
return (Py.SpecialParameter) super.visitSpecialParameter(ogParam, p);
}
@Override
public Py.Star visitStar(Py.Star star, P p) {
return (Py.Star) super.visitStar(star, p);
}
@Override
public Py.StatementExpression visitStatementExpression(Py.StatementExpression statementExpression, P p) {
return (Py.StatementExpression) super.visitStatementExpression(statementExpression, p);
}
@Override
public Py.TrailingElseWrapper visitTrailingElseWrapper(Py.TrailingElseWrapper ogWrapper, P p) {
return (Py.TrailingElseWrapper) super.visitTrailingElseWrapper(ogWrapper, p);
}
@Override
public Py.TypeHint visitTypeHint(Py.TypeHint ogType, P p) {
return (Py.TypeHint) super.visitTypeHint(ogType, p);
}
@Override
public Py.TypeHintedExpression visitTypeHintedExpression(Py.TypeHintedExpression ogExpr, P p) {
return (Py.TypeHintedExpression) super.visitTypeHintedExpression(ogExpr, p);
}
@Override
public Py.UnionType visitUnionType(Py.UnionType unionType, P p) {
return (Py.UnionType) super.visitUnionType(unionType, p);
}
@Override
public Py.VariableScope visitVariableScope(Py.VariableScope ogStmt, P p) {
return (Py.VariableScope) super.visitVariableScope(ogStmt, p);
}
@Override
public Py.YieldFrom visitYieldFrom(Py.YieldFrom ogYield, P p) {
return (Py.YieldFrom) super.visitYieldFrom(ogYield, p);
}
@Override
public Expression visitExpression(Expression expression, P p) {
return (Expression) super.visitExpression(expression, p);
}
@Override
public Statement visitStatement(Statement statement, P p) {
return (Statement) super.visitStatement(statement, p);
}
@Override
public J.AnnotatedType visitAnnotatedType(J.AnnotatedType annotatedType, P p) {
return (J.AnnotatedType) super.visitAnnotatedType(annotatedType, p);
}
@Override
public J.Annotation visitAnnotation(J.Annotation annotation, P p) {
return (J.Annotation) super.visitAnnotation(annotation, p);
}
@Override
public J.ArrayAccess visitArrayAccess(J.ArrayAccess arrayAccess, P p) {
return (J.ArrayAccess) super.visitArrayAccess(arrayAccess, p);
}
@Override
public J.ArrayDimension visitArrayDimension(J.ArrayDimension arrayDimension, P p) {
return (J.ArrayDimension) super.visitArrayDimension(arrayDimension, p);
}
@Override
public J.ArrayType visitArrayType(J.ArrayType arrayType, P p) {
return (J.ArrayType) super.visitArrayType(arrayType, p);
}
@Override
public J.Assert visitAssert(J.Assert _assert, P p) {
return (J.Assert) super.visitAssert(_assert, p);
}
@Override
public J.Assignment visitAssignment(J.Assignment assignment, P p) {
return (J.Assignment) super.visitAssignment(assignment, p);
}
@Override
public J.AssignmentOperation visitAssignmentOperation(J.AssignmentOperation assignOp, P p) {
return (J.AssignmentOperation) super.visitAssignmentOperation(assignOp, p);
}
@Override
public J.Binary visitBinary(J.Binary binary, P p) {
return (J.Binary) super.visitBinary(binary, p);
}
@Override
public J.Block visitBlock(J.Block block, P p) {
return (J.Block) super.visitBlock(block, p);
}
@Override
public J.Break visitBreak(J.Break breakStatement, P p) {
return (J.Break) super.visitBreak(breakStatement, p);
}
@Override
public J.Case visitCase(J.Case _case, P p) {
return (J.Case) super.visitCase(_case, p);
}
@Override
public J.Try.Catch visitCatch(J.Try.Catch _catch, P p) {
return (J.Try.Catch) super.visitCatch(_catch, p);
}
@Override
public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, P p) {
return (J.ClassDeclaration) super.visitClassDeclaration(classDecl, p);
}
@Override
public J.CompilationUnit visitCompilationUnit(J.CompilationUnit cu, P p) {
return (J.CompilationUnit) super.visitCompilationUnit(cu, p);
}
@SuppressWarnings("unchecked")
@Override
public J.ControlParentheses visitControlParentheses(J.ControlParentheses controlParens, P p) {
return (J.ControlParentheses) super.visitControlParentheses(controlParens, p);
}
@Override
public J.Continue visitContinue(J.Continue continueStatement, P p) {
return (J.Continue) super.visitContinue(continueStatement, p);
}
@Override
public J.DoWhileLoop visitDoWhileLoop(J.DoWhileLoop doWhileLoop, P p) {
return (J.DoWhileLoop) super.visitDoWhileLoop(doWhileLoop, p);
}
@Override
public J.If.Else visitElse(J.If.Else else_, P p) {
return (J.If.Else) super.visitElse(else_, p);
}
@Override
public J.Empty visitEmpty(J.Empty empty, P p) {
return (J.Empty) super.visitEmpty(empty, p);
}
@Override
public J.EnumValue visitEnumValue(J.EnumValue _enum, P p) {
return (J.EnumValue) super.visitEnumValue(_enum, p);
}
@Override
public J.EnumValueSet visitEnumValueSet(J.EnumValueSet enums, P p) {
return (J.EnumValueSet) super.visitEnumValueSet(enums, p);
}
@Override
public J.FieldAccess visitFieldAccess(J.FieldAccess fieldAccess, P p) {
return (J.FieldAccess) super.visitFieldAccess(fieldAccess, p);
}
@Override
public J.ForEachLoop visitForEachLoop(J.ForEachLoop forLoop, P p) {
return (J.ForEachLoop) super.visitForEachLoop(forLoop, p);
}
@Override
public J.ForEachLoop.Control visitForEachControl(J.ForEachLoop.Control control, P p) {
return (J.ForEachLoop.Control) super.visitForEachControl(control, p);
}
@Override
public J.ForLoop visitForLoop(J.ForLoop forLoop, P p) {
return (J.ForLoop) super.visitForLoop(forLoop, p);
}
@Override
public J.ForLoop.Control visitForControl(J.ForLoop.Control control, P p) {
return (J.ForLoop.Control) super.visitForControl(control, p);
}
@Override
public J.Identifier visitIdentifier(J.Identifier identifier, P p) {
return (J.Identifier) super.visitIdentifier(identifier, p);
}
@Override
public J.If visitIf(J.If iff, P p) {
return (J.If) super.visitIf(iff, p);
}
@Override
public J.Import visitImport(J.Import _import, P p) {
return (J.Import) super.visitImport(_import, p);
}
@Override
public J.InstanceOf visitInstanceOf(J.InstanceOf instanceOf, P p) {
return (J.InstanceOf) super.visitInstanceOf(instanceOf, p);
}
@Override
public J.Label visitLabel(J.Label label, P p) {
return (J.Label) super.visitLabel(label, p);
}
@Override
public J.Lambda visitLambda(J.Lambda lambda, P p) {
return (J.Lambda) super.visitLambda(lambda, p);
}
@Override
public J.Literal visitLiteral(J.Literal literal, P p) {
return (J.Literal) super.visitLiteral(literal, p);
}
@Override
public J.MemberReference visitMemberReference(J.MemberReference memberRef, P p) {
return (J.MemberReference) super.visitMemberReference(memberRef, p);
}
@Override
public J.MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, P p) {
return (J.MethodDeclaration) super.visitMethodDeclaration(method, p);
}
@Override
public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, P p) {
return (J.MethodInvocation) super.visitMethodInvocation(method, p);
}
@Override
public J.MultiCatch visitMultiCatch(J.MultiCatch multiCatch, P p) {
return (J.MultiCatch) super.visitMultiCatch(multiCatch, p);
}
@Override
public J.VariableDeclarations visitVariableDeclarations(J.VariableDeclarations multiVariable, P p) {
return (J.VariableDeclarations) super.visitVariableDeclarations(multiVariable, p);
}
@Override
public J.NewArray visitNewArray(J.NewArray newArray, P p) {
return (J.NewArray) super.visitNewArray(newArray, p);
}
@Override
public J.NewClass visitNewClass(J.NewClass newClass, P p) {
return (J.NewClass) super.visitNewClass(newClass, p);
}
@Override
public J.Package visitPackage(J.Package pkg, P p) {
return (J.Package) super.visitPackage(pkg, p);
}
@Override
public J.ParameterizedType visitParameterizedType(J.ParameterizedType type, P p) {
return (J.ParameterizedType) super.visitParameterizedType(type, p);
}
@SuppressWarnings("unchecked")
@Override
public J.Parentheses visitParentheses(J.Parentheses parens, P p) {
return (J.Parentheses) super.visitParentheses(parens, p);
}
@Override
public J.Primitive visitPrimitive(J.Primitive primitive, P p) {
return (J.Primitive) super.visitPrimitive(primitive, p);
}
@Override
public J.Return visitReturn(J.Return _return, P p) {
return (J.Return) super.visitReturn(_return, p);
}
@Override
public J.Switch visitSwitch(J.Switch _switch, P p) {
return (J.Switch) super.visitSwitch(_switch, p);
}
@Override
public J.SwitchExpression visitSwitchExpression(J.SwitchExpression _switch, P p) {
return (J.SwitchExpression) super.visitSwitchExpression(_switch, p);
}
@Override
public J.Synchronized visitSynchronized(J.Synchronized _sync, P p) {
return (J.Synchronized) super.visitSynchronized(_sync, p);
}
@Override
public J.Ternary visitTernary(J.Ternary ternary, P p) {
return (J.Ternary) super.visitTernary(ternary, p);
}
@Override
public J.Throw visitThrow(J.Throw thrown, P p) {
return (J.Throw) super.visitThrow(thrown, p);
}
@Override
public J.Try visitTry(J.Try _try, P p) {
return (J.Try) super.visitTry(_try, p);
}
@Override
public J.Try.Resource visitTryResource(J.Try.Resource tryResource, P p) {
return (J.Try.Resource) super.visitTryResource(tryResource, p);
}
@Override
public J.TypeCast visitTypeCast(J.TypeCast typeCast, P p) {
return (J.TypeCast) super.visitTypeCast(typeCast, p);
}
@Override
public J.TypeParameter visitTypeParameter(J.TypeParameter typeParam, P p) {
return (J.TypeParameter) super.visitTypeParameter(typeParam, p);
}
@Override
public J.Unary visitUnary(J.Unary unary, P p) {
return (J.Unary) super.visitUnary(unary, p);
}
@Override
public J.Unknown visitUnknown(J.Unknown unknown, P p) {
return (J.Unknown) super.visitUnknown(unknown, p);
}
@Override
public J.Unknown.Source visitUnknownSource(J.Unknown.Source source, P p) {
return (J.Unknown.Source) super.visitUnknownSource(source, p);
}
@Override
public J.VariableDeclarations.NamedVariable visitVariable(J.VariableDeclarations.NamedVariable variable, P p) {
return (J.VariableDeclarations.NamedVariable) super.visitVariable(variable, p);
}
@Override
public J.WhileLoop visitWhileLoop(J.WhileLoop whileLoop, P p) {
return (J.WhileLoop) super.visitWhileLoop(whileLoop, p);
}
@Override
public J.Wildcard visitWildcard(J.Wildcard wildcard, P p) {
return (J.Wildcard) super.visitWildcard(wildcard, p);
}
@Override
public J.Yield visitYield(J.Yield yield, P p) {
return (J.Yield) super.visitYield(yield, p);
}
}