Class PythonValidator<P>

java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
org.openrewrite.java.JavaVisitor<P>
org.openrewrite.python.PythonVisitor<P>
org.openrewrite.python.PythonIsoVisitor<P>
org.openrewrite.python.internal.rpc.PythonValidator<P>
Type Parameters:
P -

public class PythonValidator<P> extends PythonIsoVisitor<P>
Validates that the contents of lists and containers like JLeftPadded respect their generic types.
  • Constructor Details

    • PythonValidator

      public PythonValidator()
  • Method Details

    • visitCompilationUnit

      public org.openrewrite.python.tree.Py.CompilationUnit visitCompilationUnit(org.openrewrite.python.tree.Py.CompilationUnit compilationUnit, P p)
      Overrides:
      visitCompilationUnit in class PythonIsoVisitor<P>
    • visitAsync

      public org.openrewrite.python.tree.Py.Async visitAsync(org.openrewrite.python.tree.Py.Async async, P p)
      Overrides:
      visitAsync in class PythonIsoVisitor<P>
    • visitAwait

      public org.openrewrite.python.tree.Py.Await visitAwait(org.openrewrite.python.tree.Py.Await await, P p)
      Overrides:
      visitAwait in class PythonIsoVisitor<P>
    • visitBinary

      public org.openrewrite.python.tree.Py.Binary visitBinary(org.openrewrite.python.tree.Py.Binary binary, P p)
      Overrides:
      visitBinary in class PythonIsoVisitor<P>
    • visitChainedAssignment

      public org.openrewrite.python.tree.Py.ChainedAssignment visitChainedAssignment(org.openrewrite.python.tree.Py.ChainedAssignment chainedAssignment, P p)
      Overrides:
      visitChainedAssignment in class PythonIsoVisitor<P>
    • visitExceptionType

      public org.openrewrite.python.tree.Py.ExceptionType visitExceptionType(org.openrewrite.python.tree.Py.ExceptionType exceptionType, P p)
      Overrides:
      visitExceptionType in class PythonIsoVisitor<P>
    • visitLiteralType

      public org.openrewrite.python.tree.Py.LiteralType visitLiteralType(org.openrewrite.python.tree.Py.LiteralType literalType, P p)
      Overrides:
      visitLiteralType in class PythonIsoVisitor<P>
    • visitTypeHint

      public org.openrewrite.python.tree.Py.TypeHint visitTypeHint(org.openrewrite.python.tree.Py.TypeHint typeHint, P p)
      Overrides:
      visitTypeHint in class PythonIsoVisitor<P>
    • visitComprehensionExpression

      public org.openrewrite.python.tree.Py.ComprehensionExpression visitComprehensionExpression(org.openrewrite.python.tree.Py.ComprehensionExpression comprehensionExpression, P p)
      Overrides:
      visitComprehensionExpression in class PythonIsoVisitor<P>
    • visitComprehensionCondition

      public org.openrewrite.python.tree.Py.ComprehensionExpression.Condition visitComprehensionCondition(org.openrewrite.python.tree.Py.ComprehensionExpression.Condition condition, P p)
      Overrides:
      visitComprehensionCondition in class PythonIsoVisitor<P>
    • visitComprehensionClause

      public org.openrewrite.python.tree.Py.ComprehensionExpression.Clause visitComprehensionClause(org.openrewrite.python.tree.Py.ComprehensionExpression.Clause clause, P p)
      Overrides:
      visitComprehensionClause in class PythonIsoVisitor<P>
    • visitYieldFrom

      public org.openrewrite.python.tree.Py.YieldFrom visitYieldFrom(org.openrewrite.python.tree.Py.YieldFrom yieldFrom, P p)
      Overrides:
      visitYieldFrom in class PythonIsoVisitor<P>
    • visitUnionType

      public org.openrewrite.python.tree.Py.UnionType visitUnionType(org.openrewrite.python.tree.Py.UnionType unionType, P p)
      Overrides:
      visitUnionType in class PythonIsoVisitor<P>
    • visitVariableScope

      public org.openrewrite.python.tree.Py.VariableScope visitVariableScope(org.openrewrite.python.tree.Py.VariableScope variableScope, P p)
      Overrides:
      visitVariableScope in class PythonIsoVisitor<P>
    • visitDel

      public org.openrewrite.python.tree.Py.Del visitDel(org.openrewrite.python.tree.Py.Del del, P p)
      Overrides:
      visitDel in class PythonIsoVisitor<P>
    • visitSpecialParameter

      public org.openrewrite.python.tree.Py.SpecialParameter visitSpecialParameter(org.openrewrite.python.tree.Py.SpecialParameter specialParameter, P p)
      Overrides:
      visitSpecialParameter in class PythonIsoVisitor<P>
    • visitStar

      public org.openrewrite.python.tree.Py.Star visitStar(org.openrewrite.python.tree.Py.Star star, P p)
      Overrides:
      visitStar in class PythonIsoVisitor<P>
    • visitNamedArgument

      public org.openrewrite.python.tree.Py.NamedArgument visitNamedArgument(org.openrewrite.python.tree.Py.NamedArgument namedArgument, P p)
      Overrides:
      visitNamedArgument in class PythonIsoVisitor<P>
    • visitTypeHintedExpression

      public org.openrewrite.python.tree.Py.TypeHintedExpression visitTypeHintedExpression(org.openrewrite.python.tree.Py.TypeHintedExpression typeHintedExpression, P p)
      Overrides:
      visitTypeHintedExpression in class PythonIsoVisitor<P>
    • visitErrorFrom

      public org.openrewrite.python.tree.Py.ErrorFrom visitErrorFrom(org.openrewrite.python.tree.Py.ErrorFrom errorFrom, P p)
      Overrides:
      visitErrorFrom in class PythonIsoVisitor<P>
    • visitMatchCase

      public org.openrewrite.python.tree.Py.MatchCase visitMatchCase(org.openrewrite.python.tree.Py.MatchCase matchCase, P p)
      Overrides:
      visitMatchCase in class PythonIsoVisitor<P>
    • visitMatchCasePattern

      public org.openrewrite.python.tree.Py.MatchCase.Pattern visitMatchCasePattern(org.openrewrite.python.tree.Py.MatchCase.Pattern pattern, P p)
      Overrides:
      visitMatchCasePattern in class PythonIsoVisitor<P>
    • visitSlice

      public org.openrewrite.python.tree.Py.Slice visitSlice(org.openrewrite.python.tree.Py.Slice slice, P p)
      Overrides:
      visitSlice in class PythonIsoVisitor<P>
    • visitTrailingElseWrapper

      public org.openrewrite.python.tree.Py.TrailingElseWrapper visitTrailingElseWrapper(org.openrewrite.python.tree.Py.TrailingElseWrapper trailingElseWrapper, P p)
      Overrides:
      visitTrailingElseWrapper in class PythonIsoVisitor<P>
    • visitTypeAlias

      public org.openrewrite.python.tree.Py.TypeAlias visitTypeAlias(org.openrewrite.python.tree.Py.TypeAlias typeAlias, P p)
      Overrides:
      visitTypeAlias in class PythonIsoVisitor<P>
    • visitKeyValue

      public org.openrewrite.python.tree.Py.KeyValue visitKeyValue(org.openrewrite.python.tree.Py.KeyValue keyValue, P p)
      Overrides:
      visitKeyValue in class PythonIsoVisitor<P>
    • visitDictLiteral

      public org.openrewrite.python.tree.Py.DictLiteral visitDictLiteral(org.openrewrite.python.tree.Py.DictLiteral dictLiteral, P p)
      Overrides:
      visitDictLiteral in class PythonIsoVisitor<P>
    • visitCollectionLiteral

      public org.openrewrite.python.tree.Py.CollectionLiteral visitCollectionLiteral(org.openrewrite.python.tree.Py.CollectionLiteral collectionLiteral, P p)
      Overrides:
      visitCollectionLiteral in class PythonIsoVisitor<P>
    • visitFormattedString

      public org.openrewrite.python.tree.Py.FormattedString visitFormattedString(org.openrewrite.python.tree.Py.FormattedString formattedString, P p)
      Overrides:
      visitFormattedString in class PythonIsoVisitor<P>
    • visitFormattedStringValue

      public org.openrewrite.python.tree.Py.FormattedString.Value visitFormattedStringValue(org.openrewrite.python.tree.Py.FormattedString.Value value, P p)
      Overrides:
      visitFormattedStringValue in class PythonIsoVisitor<P>
    • visitPass

      public org.openrewrite.python.tree.Py.Pass visitPass(org.openrewrite.python.tree.Py.Pass pass, P p)
      Overrides:
      visitPass in class PythonIsoVisitor<P>
    • visitMultiImport

      public org.openrewrite.python.tree.Py.MultiImport visitMultiImport(org.openrewrite.python.tree.Py.MultiImport multiImport, P p)
      Overrides:
      visitMultiImport in class PythonIsoVisitor<P>
    • visitBlock

      public org.openrewrite.java.tree.J.Block visitBlock(org.openrewrite.java.tree.J.Block block, P p)
      Overrides:
      visitBlock in class PythonIsoVisitor<P>
    • visitIdentifier

      public org.openrewrite.java.tree.J.Identifier visitIdentifier(org.openrewrite.java.tree.J.Identifier identifier, P p)
      Overrides:
      visitIdentifier in class PythonIsoVisitor<P>
    • visitLiteral

      public org.openrewrite.java.tree.J.Literal visitLiteral(org.openrewrite.java.tree.J.Literal literal, P p)
      Overrides:
      visitLiteral in class PythonIsoVisitor<P>
    • visitBinary

      public org.openrewrite.java.tree.J.Binary visitBinary(org.openrewrite.java.tree.J.Binary binary, P p)
      Overrides:
      visitBinary in class PythonIsoVisitor<P>
    • visitUnary

      public org.openrewrite.java.tree.J.Unary visitUnary(org.openrewrite.java.tree.J.Unary unary, P p)
      Overrides:
      visitUnary in class PythonIsoVisitor<P>
    • visitMethodInvocation

      public org.openrewrite.java.tree.J.MethodInvocation visitMethodInvocation(org.openrewrite.java.tree.J.MethodInvocation methodInvocation, P p)
      Overrides:
      visitMethodInvocation in class PythonIsoVisitor<P>