Package org.sonar.plugins.python.api.tree
@ParametersAreNonnullByDefault
package org.sonar.plugins.python.api.tree
-
ClassDescriptionAliased nameCommon interface for
RegularArgument,UnpackingExpressionAs patternDefault implementation ofTreeVisitor.See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-break-stmtCapture PatternCase blockClass patternSee https://docs.python.org/3/reference/simple_stmts.html#the-continue-statementDictionary ComprehensionIt can be eitherKeyValuePairorUnpackingExpressionExample:os.envorCrypto.Cipher.AESDouble Star Pattern (only used within mapping patterns)Represents singleton Ellipsis objectCommon interface for ElseClause used inIfStatement.elseBranch(),ForStatement.elseClause(),WhileStatement.elseClause()andTryStatement.elseClause()Python 2 only.Example:See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-expression-stmtRoot of the AST.finally:FinallyClause.body()Common interface forFunctionDefandLambdaExpressionglobalGlobalStatement.variables()Group PatternGuardif-elif-else statement.Import From statementImport statementImport statement See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-import-stmtKey Value Pattern (only used within mapping patterns)Keyword pattern Used only inside Class patternLiteral PatternMapping PatternMatch statementSee https://docs.python.org/3/reference/expressions.html#atom-identifiersSee https://docs.python.org/3/library/constants.html#NonenonlocalNonlocalStatement.variables()OR patternSee https://docs.python.org/3/reference/compound_stmts.html#grammar-token-parameter-listhttps://docs.python.org/3/reference/simple_stmts.html#grammar-token-pass-stmtPython 2 only.Qualified expression like "foo.bar"Python 2 only.Sequence PatternStar Pattern Only used inside sequence patternsSee https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenation(Tuple.elements())Python 2 onlyValue PatternGroup PatternSee https://docs.python.org/3/reference/simple_stmts.html#grammar-token-yield-stmt