Class PythonVisitor<P>

java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
org.openrewrite.java.JavaVisitor<P>
org.openrewrite.python.PythonVisitor<P>
Direct Known Subclasses:
PythonIsoVisitor, PythonPrinter

public class PythonVisitor<P> extends org.openrewrite.java.JavaVisitor<P>
  • Constructor Details

    • PythonVisitor

      public PythonVisitor()
  • Method Details

    • isAcceptable

      public boolean isAcceptable(org.openrewrite.SourceFile sourceFile, P p)
      Overrides:
      isAcceptable in class org.openrewrite.java.JavaVisitor<P>
    • getLanguage

      public String getLanguage()
      Overrides:
      getLanguage in class org.openrewrite.java.JavaVisitor<P>
    • visitCompilationUnit

      public org.openrewrite.java.tree.J visitCompilationUnit(Py.CompilationUnit cu, P p)
    • visitBinary

      public org.openrewrite.java.tree.J visitBinary(Py.Binary binary, P p)
    • visitKeyValue

      public org.openrewrite.java.tree.J visitKeyValue(Py.KeyValue keyValue, P p)
    • visitCollectionLiteral

      public org.openrewrite.java.tree.J visitCollectionLiteral(Py.CollectionLiteral coll, P p)
    • visitDictLiteral

      public org.openrewrite.java.tree.J visitDictLiteral(Py.DictLiteral dict, P p)
    • visitCompilationUnit

      public org.openrewrite.java.tree.J visitCompilationUnit(org.openrewrite.java.tree.J.CompilationUnit cu, P p)
      Overrides:
      visitCompilationUnit in class org.openrewrite.java.JavaVisitor<P>
    • visitExpressionStatement

      public org.openrewrite.java.tree.J visitExpressionStatement(Py.ExpressionStatement expressionStatement, P p)
    • visitPass

      public org.openrewrite.java.tree.J visitPass(Py.Pass pass, P p)
    • visitComprehensionExpression

      public org.openrewrite.java.tree.J visitComprehensionExpression(Py.ComprehensionExpression ogComp, P p)
    • visitComprehensionClause

      public org.openrewrite.java.tree.J visitComprehensionClause(Py.ComprehensionExpression.Clause ogClause, P p)
    • visitComprehensionCondition

      public org.openrewrite.java.tree.J visitComprehensionCondition(Py.ComprehensionExpression.Condition ogCondition, P p)
    • visitRightPadded

      public <T> org.openrewrite.java.tree.JRightPadded<T> visitRightPadded(@Nullable org.openrewrite.java.tree.JRightPadded<T> right, PyRightPadded.Location loc, P p)
    • visitLeftPadded

      public <T> org.openrewrite.java.tree.JLeftPadded<T> visitLeftPadded(@Nullable org.openrewrite.java.tree.JLeftPadded<T> left, PyLeftPadded.Location loc, P p)
    • visitSpace

      public org.openrewrite.java.tree.Space visitSpace(org.openrewrite.java.tree.Space space, PySpace.Location loc, P p)
    • visitContainer

      public <J2 extends org.openrewrite.java.tree.J> org.openrewrite.java.tree.JContainer<J2> visitContainer(org.openrewrite.java.tree.JContainer<J2> container, PyContainer.Location loc, P p)
    • visitAwait

      public org.openrewrite.java.tree.J visitAwait(Py.Await ogAwait, P p)
    • visitYieldFrom

      public org.openrewrite.java.tree.J visitYieldFrom(Py.YieldFrom ogYield, P p)
    • visitDel

      public org.openrewrite.java.tree.J visitDel(Py.Del ogDel, P p)
    • visitExceptionType

      public org.openrewrite.java.tree.J visitExceptionType(Py.ExceptionType ogType, P p)
    • visitTypeHint

      public org.openrewrite.java.tree.J visitTypeHint(Py.TypeHint ogType, P p)
    • visitVariableScope

      public org.openrewrite.java.tree.J visitVariableScope(Py.VariableScope ogStmt, P p)
    • visitErrorFrom

      public org.openrewrite.java.tree.J visitErrorFrom(Py.ErrorFrom ogExpr, P p)
    • visitFormattedString

      public org.openrewrite.java.tree.J visitFormattedString(Py.FormattedString fString, P p)
    • visitFormattedStringValue

      public org.openrewrite.java.tree.J visitFormattedStringValue(Py.FormattedString.Value value, P p)
    • visitMatchCasePattern

      public org.openrewrite.java.tree.J visitMatchCasePattern(Py.MatchCase.Pattern ogPattern, P p)
    • visitMatchCase

      public org.openrewrite.java.tree.J visitMatchCase(Py.MatchCase ogMatch, P p)
    • visitMultiImport

      public org.openrewrite.java.tree.J visitMultiImport(Py.MultiImport multiImport_, P p)
    • visitSpecialParameter

      public org.openrewrite.java.tree.J visitSpecialParameter(Py.SpecialParameter ogParam, P p)
    • visitTypeHintedExpression

      public org.openrewrite.java.tree.J visitTypeHintedExpression(Py.TypeHintedExpression ogExpr, P p)
    • visitTrailingElseWrapper

      public org.openrewrite.java.tree.J visitTrailingElseWrapper(Py.TrailingElseWrapper ogWrapper, P p)
    • visitStar

      public org.openrewrite.java.tree.J visitStar(Py.Star star, P p)
    • visitNamedArgument

      public org.openrewrite.java.tree.J visitNamedArgument(Py.NamedArgument ogArg, P p)
    • visitSlice

      public org.openrewrite.java.tree.J visitSlice(Py.Slice slice, P p)
    • visitStatementExpression

      public org.openrewrite.java.tree.J visitStatementExpression(Py.StatementExpression statementExpression, P p)