main.org.openrewrite.kotlin.KotlinIsoVisitor Maven / Gradle / Ivy
/*
* Copyright 2022 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.kotlin;
import org.openrewrite.java.tree.Expression;
import org.openrewrite.java.tree.J;
import org.openrewrite.java.tree.Statement;
import org.openrewrite.kotlin.tree.K;
public class KotlinIsoVisitor
extends KotlinVisitor
{
@Override
public K.CompilationUnit visitCompilationUnit(K.CompilationUnit cu, P p) {
return (K.CompilationUnit) super.visitCompilationUnit(cu, p);
}
@Override
public K.AnnotationType visitAnnotationType(K.AnnotationType annotationType, P p) {
return (K.AnnotationType) super.visitAnnotationType(annotationType, p);
}
@Override
public K.Binary visitBinary(K.Binary binary, P p) {
return (K.Binary) super.visitBinary(binary, p);
}
@Override
public K.ClassDeclaration visitClassDeclaration(K.ClassDeclaration classDeclaration, P p) {
return (K.ClassDeclaration) super.visitClassDeclaration(classDeclaration, p);
}
@Override
public K.Constructor visitConstructor(K.Constructor constructor, P p) {
return (K.Constructor) super.visitConstructor(constructor, p);
}
@Override
public K.ConstructorInvocation visitConstructorInvocation(K.ConstructorInvocation constructorInvocation, P p) {
return (K.ConstructorInvocation) super.visitConstructorInvocation(constructorInvocation, p);
}
@Override
public K.DelegatedSuperType visitDelegatedSuperType(K.DelegatedSuperType delegatedSuperType, P p) {
return (K.DelegatedSuperType) super.visitDelegatedSuperType(delegatedSuperType, p);
}
@Override
public K.DestructuringDeclaration visitDestructuringDeclaration(K.DestructuringDeclaration destructuringDeclaration, P p) {
return (K.DestructuringDeclaration) super.visitDestructuringDeclaration(destructuringDeclaration, p);
}
@Override
public K.FunctionType visitFunctionType(K.FunctionType functionType, P p) {
return (K.FunctionType) super.visitFunctionType(functionType, p);
}
@Override
public K.FunctionType.Parameter visitFunctionTypeParameter(K.FunctionType.Parameter parameter, P p) {
return (K.FunctionType.Parameter) super.visitFunctionTypeParameter(parameter, p);
}
@Override
public K.Return visitReturn(K.Return return_, P p) {
return (K.Return) super.visitReturn(return_, p);
}
@Override
public K.StringTemplate visitStringTemplate(K.StringTemplate stringTemplate, P p) {
return (K.StringTemplate) super.visitStringTemplate(stringTemplate, p);
}
@Override
public K.StringTemplate.Expression visitStringTemplateExpression(K.StringTemplate.Expression expression, P p) {
return (K.StringTemplate.Expression) super.visitStringTemplateExpression(expression, p);
}
@Override
public K.This visitThis(K.This aThis, P p) {
return (K.This) super.visitThis(aThis, p);
}
@Override
public K.MethodDeclaration visitMethodDeclaration(K.MethodDeclaration methodDeclaration, P p) {
return (K.MethodDeclaration) super.visitMethodDeclaration(methodDeclaration, p);
}
@Override
public K.MultiAnnotationType visitMultiAnnotationType(K.MultiAnnotationType multiAnnotationType, P p) {
return (K.MultiAnnotationType) super.visitMultiAnnotationType(multiAnnotationType, p);
}
@Override
public K.ListLiteral visitListLiteral(K.ListLiteral listLiteral, P p) {
return (K.ListLiteral) super.visitListLiteral(listLiteral, p);
}
@Override
public K.Property visitProperty(K.Property property, P p) {
return (K.Property) super.visitProperty(property, p);
}
@Override
public K.SpreadArgument visitSpreadArgument(K.SpreadArgument spreadArgument, P p) {
return (K.SpreadArgument) super.visitSpreadArgument(spreadArgument, p);
}
@Override
public K.TypeAlias visitTypeAlias(K.TypeAlias typeAlias, P p) {
return (K.TypeAlias) super.visitTypeAlias(typeAlias, p);
}
@Override
public K.TypeConstraints visitTypeConstraints(K.TypeConstraints typeConstraints, P p) {
return (K.TypeConstraints) super.visitTypeConstraints(typeConstraints, p);
}
@Override
public K.When visitWhen(K.When when, P p) {
return (K.When) super.visitWhen(when, p);
}
@Override
public K.WhenBranch visitWhenBranch(K.WhenBranch whenBranch, P p) {
return (K.WhenBranch) super.visitWhenBranch(whenBranch, 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.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);
}
}