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-
Validates that the contents of lists and containers like JLeftPadded respect their generic types.
-
Field Summary
Fields inherited from class org.openrewrite.java.JavaVisitor
javadocVisitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openrewrite.python.tree.Py.AsyncvisitAsync(org.openrewrite.python.tree.Py.Async async, P p) org.openrewrite.python.tree.Py.AwaitvisitAwait(org.openrewrite.python.tree.Py.Await await, P p) org.openrewrite.java.tree.J.BinaryvisitBinary(org.openrewrite.java.tree.J.Binary binary, P p) org.openrewrite.python.tree.Py.BinaryvisitBinary(org.openrewrite.python.tree.Py.Binary binary, P p) org.openrewrite.java.tree.J.BlockvisitBlock(org.openrewrite.java.tree.J.Block block, P p) org.openrewrite.python.tree.Py.ChainedAssignmentvisitChainedAssignment(org.openrewrite.python.tree.Py.ChainedAssignment chainedAssignment, P p) org.openrewrite.python.tree.Py.CollectionLiteralvisitCollectionLiteral(org.openrewrite.python.tree.Py.CollectionLiteral collectionLiteral, P p) org.openrewrite.python.tree.Py.CompilationUnitvisitCompilationUnit(org.openrewrite.python.tree.Py.CompilationUnit compilationUnit, P p) org.openrewrite.python.tree.Py.ComprehensionExpression.ClausevisitComprehensionClause(org.openrewrite.python.tree.Py.ComprehensionExpression.Clause clause, P p) org.openrewrite.python.tree.Py.ComprehensionExpression.ConditionvisitComprehensionCondition(org.openrewrite.python.tree.Py.ComprehensionExpression.Condition condition, P p) org.openrewrite.python.tree.Py.ComprehensionExpressionvisitComprehensionExpression(org.openrewrite.python.tree.Py.ComprehensionExpression comprehensionExpression, P p) org.openrewrite.python.tree.Py.Delorg.openrewrite.python.tree.Py.DictLiteralvisitDictLiteral(org.openrewrite.python.tree.Py.DictLiteral dictLiteral, P p) org.openrewrite.python.tree.Py.ErrorFromvisitErrorFrom(org.openrewrite.python.tree.Py.ErrorFrom errorFrom, P p) org.openrewrite.python.tree.Py.ExceptionTypevisitExceptionType(org.openrewrite.python.tree.Py.ExceptionType exceptionType, P p) org.openrewrite.python.tree.Py.FormattedStringvisitFormattedString(org.openrewrite.python.tree.Py.FormattedString formattedString, P p) org.openrewrite.python.tree.Py.FormattedString.ValuevisitFormattedStringValue(org.openrewrite.python.tree.Py.FormattedString.Value value, P p) org.openrewrite.java.tree.J.IdentifiervisitIdentifier(org.openrewrite.java.tree.J.Identifier identifier, P p) org.openrewrite.python.tree.Py.KeyValuevisitKeyValue(org.openrewrite.python.tree.Py.KeyValue keyValue, P p) org.openrewrite.java.tree.J.LiteralvisitLiteral(org.openrewrite.java.tree.J.Literal literal, P p) org.openrewrite.python.tree.Py.LiteralTypevisitLiteralType(org.openrewrite.python.tree.Py.LiteralType literalType, P p) org.openrewrite.python.tree.Py.MatchCasevisitMatchCase(org.openrewrite.python.tree.Py.MatchCase matchCase, P p) org.openrewrite.python.tree.Py.MatchCase.PatternvisitMatchCasePattern(org.openrewrite.python.tree.Py.MatchCase.Pattern pattern, P p) org.openrewrite.java.tree.J.MethodInvocationvisitMethodInvocation(org.openrewrite.java.tree.J.MethodInvocation methodInvocation, P p) org.openrewrite.python.tree.Py.MultiImportvisitMultiImport(org.openrewrite.python.tree.Py.MultiImport multiImport, P p) org.openrewrite.python.tree.Py.NamedArgumentvisitNamedArgument(org.openrewrite.python.tree.Py.NamedArgument namedArgument, P p) org.openrewrite.python.tree.Py.Passorg.openrewrite.python.tree.Py.SlicevisitSlice(org.openrewrite.python.tree.Py.Slice slice, P p) org.openrewrite.python.tree.Py.SpecialParametervisitSpecialParameter(org.openrewrite.python.tree.Py.SpecialParameter specialParameter, P p) org.openrewrite.python.tree.Py.Starorg.openrewrite.python.tree.Py.TrailingElseWrappervisitTrailingElseWrapper(org.openrewrite.python.tree.Py.TrailingElseWrapper trailingElseWrapper, P p) org.openrewrite.python.tree.Py.TypeAliasvisitTypeAlias(org.openrewrite.python.tree.Py.TypeAlias typeAlias, P p) org.openrewrite.python.tree.Py.TypeHintvisitTypeHint(org.openrewrite.python.tree.Py.TypeHint typeHint, P p) org.openrewrite.python.tree.Py.TypeHintedExpressionvisitTypeHintedExpression(org.openrewrite.python.tree.Py.TypeHintedExpression typeHintedExpression, P p) org.openrewrite.java.tree.J.UnaryvisitUnary(org.openrewrite.java.tree.J.Unary unary, P p) org.openrewrite.python.tree.Py.UnionTypevisitUnionType(org.openrewrite.python.tree.Py.UnionType unionType, P p) org.openrewrite.python.tree.Py.VariableScopevisitVariableScope(org.openrewrite.python.tree.Py.VariableScope variableScope, P p) org.openrewrite.python.tree.Py.YieldFromvisitYieldFrom(org.openrewrite.python.tree.Py.YieldFrom yieldFrom, P p) Methods inherited from class org.openrewrite.python.PythonIsoVisitor
visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayDimension, visitArrayType, visitAssert, visitAssignment, visitAssignmentOperation, visitBreak, visitCase, visitCatch, visitClassDeclaration, visitContinue, visitControlParentheses, visitDeconstructionPattern, visitDoWhileLoop, visitElse, visitEmpty, visitEnumValue, visitEnumValueSet, visitErroneous, visitExpressionStatement, visitExpressionTypeTree, visitFieldAccess, visitForControl, visitForEachControl, visitForEachLoop, visitForLoop, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabel, visitLambda, visitMemberReference, visitMethodDeclaration, visitModifier, visitMultiCatch, visitNewArray, visitNewClass, visitNullableType, visitPackage, visitParameterizedType, visitParentheses, visitParenthesizedTypeTree, visitPrimitive, visitReturn, visitStatementExpression, visitSwitch, visitSwitchExpression, visitSynchronized, visitTernary, visitThrow, visitTry, visitTryResource, visitTypeCast, visitTypeParameter, visitUnknown, visitUnknownSource, visitVariable, visitVariableDeclarations, visitWhileLoop, visitWildcard, visitYieldMethods inherited from class org.openrewrite.python.PythonVisitor
isAcceptable, visitContainer, visitLeftPadded, visitRightPadded, visitSpaceMethods inherited from class org.openrewrite.java.JavaVisitor
autoFormat, autoFormat, autoFormat, getJavadocVisitor, getLanguage, isInSameNameScope, isInSameNameScope, maybeAddImport, maybeAddImport, maybeAddImport, maybeAddImport, maybeAddImport, maybeAddImport, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, maybeRemoveImport, maybeRemoveImport, service, visitCompilationUnit, visitContainer, visitExpression, visitLambdaParameters, visitLeftPadded, visitRightPadded, visitSpace, visitStatement, visitType, visitTypeName, visitTypeParametersMethods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, postVisit, preVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType
-
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:
visitCompilationUnitin classPythonIsoVisitor<P>
-
visitAsync
public org.openrewrite.python.tree.Py.Async visitAsync(org.openrewrite.python.tree.Py.Async async, P p) - Overrides:
visitAsyncin classPythonIsoVisitor<P>
-
visitAwait
public org.openrewrite.python.tree.Py.Await visitAwait(org.openrewrite.python.tree.Py.Await await, P p) - Overrides:
visitAwaitin classPythonIsoVisitor<P>
-
visitBinary
public org.openrewrite.python.tree.Py.Binary visitBinary(org.openrewrite.python.tree.Py.Binary binary, P p) - Overrides:
visitBinaryin classPythonIsoVisitor<P>
-
visitChainedAssignment
public org.openrewrite.python.tree.Py.ChainedAssignment visitChainedAssignment(org.openrewrite.python.tree.Py.ChainedAssignment chainedAssignment, P p) - Overrides:
visitChainedAssignmentin classPythonIsoVisitor<P>
-
visitExceptionType
public org.openrewrite.python.tree.Py.ExceptionType visitExceptionType(org.openrewrite.python.tree.Py.ExceptionType exceptionType, P p) - Overrides:
visitExceptionTypein classPythonIsoVisitor<P>
-
visitLiteralType
public org.openrewrite.python.tree.Py.LiteralType visitLiteralType(org.openrewrite.python.tree.Py.LiteralType literalType, P p) - Overrides:
visitLiteralTypein classPythonIsoVisitor<P>
-
visitTypeHint
public org.openrewrite.python.tree.Py.TypeHint visitTypeHint(org.openrewrite.python.tree.Py.TypeHint typeHint, P p) - Overrides:
visitTypeHintin classPythonIsoVisitor<P>
-
visitComprehensionExpression
public org.openrewrite.python.tree.Py.ComprehensionExpression visitComprehensionExpression(org.openrewrite.python.tree.Py.ComprehensionExpression comprehensionExpression, P p) - Overrides:
visitComprehensionExpressionin classPythonIsoVisitor<P>
-
visitComprehensionCondition
public org.openrewrite.python.tree.Py.ComprehensionExpression.Condition visitComprehensionCondition(org.openrewrite.python.tree.Py.ComprehensionExpression.Condition condition, P p) - Overrides:
visitComprehensionConditionin classPythonIsoVisitor<P>
-
visitComprehensionClause
public org.openrewrite.python.tree.Py.ComprehensionExpression.Clause visitComprehensionClause(org.openrewrite.python.tree.Py.ComprehensionExpression.Clause clause, P p) - Overrides:
visitComprehensionClausein classPythonIsoVisitor<P>
-
visitYieldFrom
public org.openrewrite.python.tree.Py.YieldFrom visitYieldFrom(org.openrewrite.python.tree.Py.YieldFrom yieldFrom, P p) - Overrides:
visitYieldFromin classPythonIsoVisitor<P>
-
visitUnionType
public org.openrewrite.python.tree.Py.UnionType visitUnionType(org.openrewrite.python.tree.Py.UnionType unionType, P p) - Overrides:
visitUnionTypein classPythonIsoVisitor<P>
-
visitVariableScope
public org.openrewrite.python.tree.Py.VariableScope visitVariableScope(org.openrewrite.python.tree.Py.VariableScope variableScope, P p) - Overrides:
visitVariableScopein classPythonIsoVisitor<P>
-
visitDel
- Overrides:
visitDelin classPythonIsoVisitor<P>
-
visitSpecialParameter
public org.openrewrite.python.tree.Py.SpecialParameter visitSpecialParameter(org.openrewrite.python.tree.Py.SpecialParameter specialParameter, P p) - Overrides:
visitSpecialParameterin classPythonIsoVisitor<P>
-
visitStar
- Overrides:
visitStarin classPythonIsoVisitor<P>
-
visitNamedArgument
public org.openrewrite.python.tree.Py.NamedArgument visitNamedArgument(org.openrewrite.python.tree.Py.NamedArgument namedArgument, P p) - Overrides:
visitNamedArgumentin classPythonIsoVisitor<P>
-
visitTypeHintedExpression
public org.openrewrite.python.tree.Py.TypeHintedExpression visitTypeHintedExpression(org.openrewrite.python.tree.Py.TypeHintedExpression typeHintedExpression, P p) - Overrides:
visitTypeHintedExpressionin classPythonIsoVisitor<P>
-
visitErrorFrom
public org.openrewrite.python.tree.Py.ErrorFrom visitErrorFrom(org.openrewrite.python.tree.Py.ErrorFrom errorFrom, P p) - Overrides:
visitErrorFromin classPythonIsoVisitor<P>
-
visitMatchCase
public org.openrewrite.python.tree.Py.MatchCase visitMatchCase(org.openrewrite.python.tree.Py.MatchCase matchCase, P p) - Overrides:
visitMatchCasein classPythonIsoVisitor<P>
-
visitMatchCasePattern
public org.openrewrite.python.tree.Py.MatchCase.Pattern visitMatchCasePattern(org.openrewrite.python.tree.Py.MatchCase.Pattern pattern, P p) - Overrides:
visitMatchCasePatternin classPythonIsoVisitor<P>
-
visitSlice
public org.openrewrite.python.tree.Py.Slice visitSlice(org.openrewrite.python.tree.Py.Slice slice, P p) - Overrides:
visitSlicein classPythonIsoVisitor<P>
-
visitTrailingElseWrapper
public org.openrewrite.python.tree.Py.TrailingElseWrapper visitTrailingElseWrapper(org.openrewrite.python.tree.Py.TrailingElseWrapper trailingElseWrapper, P p) - Overrides:
visitTrailingElseWrapperin classPythonIsoVisitor<P>
-
visitTypeAlias
public org.openrewrite.python.tree.Py.TypeAlias visitTypeAlias(org.openrewrite.python.tree.Py.TypeAlias typeAlias, P p) - Overrides:
visitTypeAliasin classPythonIsoVisitor<P>
-
visitKeyValue
public org.openrewrite.python.tree.Py.KeyValue visitKeyValue(org.openrewrite.python.tree.Py.KeyValue keyValue, P p) - Overrides:
visitKeyValuein classPythonIsoVisitor<P>
-
visitDictLiteral
public org.openrewrite.python.tree.Py.DictLiteral visitDictLiteral(org.openrewrite.python.tree.Py.DictLiteral dictLiteral, P p) - Overrides:
visitDictLiteralin classPythonIsoVisitor<P>
-
visitCollectionLiteral
public org.openrewrite.python.tree.Py.CollectionLiteral visitCollectionLiteral(org.openrewrite.python.tree.Py.CollectionLiteral collectionLiteral, P p) - Overrides:
visitCollectionLiteralin classPythonIsoVisitor<P>
-
visitFormattedString
public org.openrewrite.python.tree.Py.FormattedString visitFormattedString(org.openrewrite.python.tree.Py.FormattedString formattedString, P p) - Overrides:
visitFormattedStringin classPythonIsoVisitor<P>
-
visitFormattedStringValue
public org.openrewrite.python.tree.Py.FormattedString.Value visitFormattedStringValue(org.openrewrite.python.tree.Py.FormattedString.Value value, P p) - Overrides:
visitFormattedStringValuein classPythonIsoVisitor<P>
-
visitPass
- Overrides:
visitPassin classPythonIsoVisitor<P>
-
visitMultiImport
public org.openrewrite.python.tree.Py.MultiImport visitMultiImport(org.openrewrite.python.tree.Py.MultiImport multiImport, P p) - Overrides:
visitMultiImportin classPythonIsoVisitor<P>
-
visitBlock
- Overrides:
visitBlockin classPythonIsoVisitor<P>
-
visitIdentifier
public org.openrewrite.java.tree.J.Identifier visitIdentifier(org.openrewrite.java.tree.J.Identifier identifier, P p) - Overrides:
visitIdentifierin classPythonIsoVisitor<P>
-
visitLiteral
public org.openrewrite.java.tree.J.Literal visitLiteral(org.openrewrite.java.tree.J.Literal literal, P p) - Overrides:
visitLiteralin classPythonIsoVisitor<P>
-
visitBinary
public org.openrewrite.java.tree.J.Binary visitBinary(org.openrewrite.java.tree.J.Binary binary, P p) - Overrides:
visitBinaryin classPythonIsoVisitor<P>
-
visitUnary
- Overrides:
visitUnaryin classPythonIsoVisitor<P>
-
visitMethodInvocation
public org.openrewrite.java.tree.J.MethodInvocation visitMethodInvocation(org.openrewrite.java.tree.J.MethodInvocation methodInvocation, P p) - Overrides:
visitMethodInvocationin classPythonIsoVisitor<P>
-