Uses of Interface
org.sonar.plugins.python.api.tree.Tree
-
-
Uses of Tree in org.sonar.plugins.python.api
Methods in org.sonar.plugins.python.api that return Tree Modifier and Type Method Description TreeSubscriptionContext. syntaxNode()Methods in org.sonar.plugins.python.api with parameters of type Tree Modifier and Type Method Description protected PythonCheck.PreciseIssuePythonVisitorCheck. addIssue(Tree node, String message)PythonCheck.PreciseIssueSubscriptionContext. addIssue(Tree element, String message)static IssueLocationIssueLocation. preciseLocation(Tree tree, String message)PythonCheck.PreciseIssuePythonCheck.PreciseIssue. secondary(Tree tree, String message) -
Uses of Tree in org.sonar.plugins.python.api.cfg
Methods in org.sonar.plugins.python.api.cfg that return Tree Modifier and Type Method Description TreeCfgBranchingBlock. branchingTree()Syntax tree causing branching: e.g.Methods in org.sonar.plugins.python.api.cfg that return types with arguments of type Tree Modifier and Type Method Description List<Tree>CfgBlock. elements() -
Uses of Tree in org.sonar.plugins.python.api.symbols
Methods in org.sonar.plugins.python.api.symbols that return Tree Modifier and Type Method Description TreeUsage. tree() -
Uses of Tree in org.sonar.plugins.python.api.tree
Subinterfaces of Tree in org.sonar.plugins.python.api.tree Modifier and Type Interface Description interfaceAliasedNameAliased nameinterfaceAnnotatedAssignmentinterfaceAnyParameterinterfaceArgListinterfaceArgumentCommon interface forRegularArgument,UnpackingExpressioninterfaceAsPatternAs patterninterfaceAssertStatementinterfaceAssignmentExpressioninterfaceAssignmentStatementinterfaceAwaitExpressioninterfaceBinaryExpressioninterfaceBreakStatementSee https://docs.python.org/3/reference/simple_stmts.html#grammar-token-break-stmtinterfaceCallExpressioninterfaceCapturePatternCapture PatterninterfaceCaseBlockCase blockinterfaceCellMagicStatementinterfaceClassDefinterfaceClassPatternClass patterninterfaceCompoundAssignmentStatementinterfaceComprehensionClauseinterfaceComprehensionExpressioninterfaceComprehensionForinterfaceComprehensionIfinterfaceConditionalExpressioninterfaceContinueStatementSee https://docs.python.org/3/reference/simple_stmts.html#the-continue-statementinterfaceDecoratorinterfaceDelStatementinterfaceDictCompExpressionDictionary ComprehensioninterfaceDictionaryLiteralinterfaceDictionaryLiteralElementIt can be eitherKeyValuePairorUnpackingExpressioninterfaceDottedNameExample:os.envorCrypto.Cipher.AESinterfaceDoubleStarPatternDouble Star Pattern (only used within mapping patterns)interfaceDynamicObjectInfoStatementinterfaceEllipsisExpressionRepresents singleton Ellipsis objectinterfaceElseClauseCommon interface for ElseClause used inIfStatement.elseBranch(),ForStatement.elseClause(),WhileStatement.elseClause()andTryStatement.elseClause()interfaceExceptClauseinterfaceExecStatementPython 2 only.interfaceExpressioninterfaceExpressionListExample:interfaceExpressionStatementSee https://docs.python.org/3/reference/simple_stmts.html#grammar-token-expression-stmtinterfaceFileInputRoot of the AST.interfaceFinallyClausefinally:FinallyClause.body()interfaceFormatSpecifierinterfaceFormattedExpressioninterfaceForStatementinterfaceFunctionDefinterfaceFunctionLikeCommon interface forFunctionDefandLambdaExpressioninterfaceGlobalStatementglobalGlobalStatement.variables()interfaceGroupPatternGroup PatterninterfaceGuardGuardinterfaceIfStatementif-elif-else statement.interfaceImportFromImport From statementinterfaceImportNameImport statementinterfaceImportStatementImport statement See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-import-stmtinterfaceInExpressioninterfaceIsExpressioninterfaceKeyValuePairinterfaceKeyValuePatternKey Value Pattern (only used within mapping patterns)interfaceKeywordPatternKeyword pattern Used only inside Class patterninterfaceLambdaExpressioninterfaceLineMagicinterfaceListLiteralinterfaceLiteralPatternLiteral PatterninterfaceMappingPatternMapping PatterninterfaceMatchStatementMatch statementinterfaceNameSee https://docs.python.org/3/reference/expressions.html#atom-identifiersinterfaceNoneExpressionSee https://docs.python.org/3/library/constants.html#NoneinterfaceNonlocalStatementnonlocalNonlocalStatement.variables()interfaceNumericLiteralinterfaceOrPatternOR patterninterfaceParameterinterfaceParameterListSee https://docs.python.org/3/reference/compound_stmts.html#grammar-token-parameter-listinterfaceParenthesizedExpressioninterfacePassStatementhttps://docs.python.org/3/reference/simple_stmts.html#grammar-token-pass-stmtinterfacePatterninterfacePrintStatementPython 2 only.interfaceQualifiedExpressionQualified expression like "foo.bar"interfaceRaiseStatementinterfaceRegularArgumentinterfaceReprExpressionPython 2 only.interfaceReturnStatementinterfaceSequencePatternSequence PatterninterfaceSetLiteralinterfaceSliceExpressioninterfaceSliceIteminterfaceSliceListinterfaceStarPatternStar Pattern Only used inside sequence patternsinterfaceStatementinterfaceStatementListinterfaceStringElementinterfaceStringLiteralSee https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenationinterfaceSubscriptionExpressioninterfaceTokeninterfaceTryStatementinterfaceTuple(Tuple.elements())interfaceTupleParameterPython 2 onlyinterfaceTypeAliasStatementinterfaceTypeAnnotationinterfaceTypeParaminterfaceTypeParamsinterfaceUnaryExpressioninterfaceUnpackingExpressioninterfaceValuePatternValue PatterninterfaceWhileStatementinterfaceWildcardPatternGroup PatterninterfaceWithIteminterfaceWithStatementinterfaceYieldExpressioninterfaceYieldStatementSee https://docs.python.org/3/reference/simple_stmts.html#grammar-token-yield-stmtMethods in org.sonar.plugins.python.api.tree that return Tree Modifier and Type Method Description TreeTree. parent()Methods in org.sonar.plugins.python.api.tree that return types with arguments of type Tree Modifier and Type Method Description List<Tree>Tree. children()List<Tree>SliceList. slices()Methods in org.sonar.plugins.python.api.tree with parameters of type Tree Modifier and Type Method Description protected voidBaseTreeVisitor. scan(Tree tree)Method parameters in org.sonar.plugins.python.api.tree with type arguments of type Tree Modifier and Type Method Description protected voidBaseTreeVisitor. scan(List<? extends Tree> trees) -
Uses of Tree in org.sonar.python.cfg
Methods in org.sonar.python.cfg that return Tree Modifier and Type Method Description TreePythonCfgBranchingBlock. branchingTree()Methods in org.sonar.python.cfg that return types with arguments of type Tree Modifier and Type Method Description List<Tree>PythonCfgBlock. elements()List<Tree>PythonCfgEndBlock. elements()Methods in org.sonar.python.cfg with parameters of type Tree Modifier and Type Method Description voidPythonCfgBlock. addElement(Tree tree)Constructors in org.sonar.python.cfg with parameters of type Tree Constructor Description PythonCfgBranchingBlock(Tree branchingTree, CfgBlock trueSuccessor, CfgBlock falseSuccessor) -
Uses of Tree in org.sonar.python.cfg.fixpoint
Fields in org.sonar.python.cfg.fixpoint with type parameters of type Tree Modifier and Type Field Description protected Map<Tree,Map<Symbol,ReadWriteVisitor.SymbolReadWrite>>CfgBlockState. variableReadWritesPerElementMethods in org.sonar.python.cfg.fixpoint with parameters of type Tree Modifier and Type Method Description Map<Symbol,ReadWriteVisitor.SymbolReadWrite>CfgBlockState. getSymbolReadWrites(Tree tree)abstract voidForwardAnalysis. updateProgramState(Tree element, ProgramState programState) -
Uses of Tree in org.sonar.python.metrics
Methods in org.sonar.python.metrics with parameters of type Tree Modifier and Type Method Description static intCognitiveComplexityVisitor. complexity(Tree tree, CognitiveComplexityVisitor.SecondaryLocationConsumer secondaryLocationConsumer)static intComplexityVisitor. complexity(Tree pyTree) -
Uses of Tree in org.sonar.python.quickfix
Methods in org.sonar.python.quickfix with parameters of type Tree Modifier and Type Method Description static PythonTextEditTextEditUtils. insertAfter(Tree tree, String textToInsert)static PythonTextEditTextEditUtils. insertBefore(Tree tree, String textToInsert)static PythonTextEditTextEditUtils. insertLineAfter(Tree tree, Tree indentReference, String textToInsert)Insert a line with the same offset as the given tree, after the given tree.static PythonTextEditTextEditUtils. insertLineBefore(Tree tree, String textToInsert)Insert a line with the same offset as the given tree, before the given tree.static PythonTextEditTextEditUtils. remove(Tree toRemove)static PythonTextEditTextEditUtils. removeUntil(Tree start, Tree until)Remove range including the start token until the beginning of the end tree's first token.static PythonTextEditTextEditUtils. replace(Tree toReplace, String replacementText)static PythonTextEditTextEditUtils. replaceRange(Tree start, Tree end, String replacementText)static List<PythonTextEdit>TextEditUtils. shiftLeft(Tree tree, int offset)Shift single statement of a statement list by the given offset. -
Uses of Tree in org.sonar.python.regex
Methods in org.sonar.python.regex with parameters of type Tree Modifier and Type Method Description PythonCheck.PreciseIssueRegexContext. addIssue(Tree element, String message) -
Uses of Tree in org.sonar.python.semantic
Methods in org.sonar.python.semantic that return Tree Modifier and Type Method Description TreeUsageImpl. tree()Constructors in org.sonar.python.semantic with parameters of type Tree Constructor Description UsageImpl(Tree tree, Usage.Kind kind) -
Uses of Tree in org.sonar.python.tests
Methods in org.sonar.python.tests with parameters of type Tree Modifier and Type Method Description static booleanUnittestUtils. isWithinUnittestTestCase(Tree tree) -
Uses of Tree in org.sonar.python.tree
Classes in org.sonar.python.tree with type parameters of type Tree Modifier and Type Class Description classDictOrSetLiteralImpl<E extends Tree>Methods in org.sonar.python.tree with type parameters of type Tree Modifier and Type Method Description static <T extends Tree>
Function<Tree,T>TreeUtils. toInstanceOfMapper(Class<T> castToClass)static <T extends Tree>
Optional<T>TreeUtils. toOptionalInstanceOf(Class<T> castToClass, Tree tree)static <T extends Tree>
Function<Tree,Optional<T>>TreeUtils. toOptionalInstanceOfMapper(Class<T> castToClass)Methods in org.sonar.python.tree that return Tree Modifier and Type Method Description static TreeTreeUtils. firstAncestor(Tree tree, Predicate<Tree> predicate)static TreeTreeUtils. firstAncestorOfKind(Tree tree, Tree.Kind... kinds)TreePyTree. parent()Methods in org.sonar.python.tree that return types with arguments of type Tree Modifier and Type Method Description List<Tree>PyTree. children()List<Tree>AliasedNameImpl. computeChildren()List<Tree>AnnotatedAssignmentImpl. computeChildren()List<Tree>ArgListImpl. computeChildren()List<Tree>AssertStatementImpl. computeChildren()List<Tree>AssignmentStatementImpl. computeChildren()List<Tree>AwaitExpressionImpl. computeChildren()List<Tree>BinaryExpressionImpl. computeChildren()List<Tree>BreakStatementImpl. computeChildren()List<Tree>CallExpressionImpl. computeChildren()List<Tree>ClassDefImpl. computeChildren()List<Tree>CompoundAssignmentStatementImpl. computeChildren()List<Tree>ComprehensionExpressionImpl. computeChildren()List<Tree>ComprehensionForImpl. computeChildren()List<Tree>ComprehensionIfImpl. computeChildren()List<Tree>ConditionalExpressionImpl. computeChildren()List<Tree>ContinueStatementImpl. computeChildren()List<Tree>DecoratorImpl. computeChildren()List<Tree>DelStatementImpl. computeChildren()List<Tree>DictCompExpressionImpl. computeChildren()List<Tree>DictOrSetLiteralImpl. computeChildren()List<Tree>DottedNameImpl. computeChildren()List<Tree>EllipsisExpressionImpl. computeChildren()List<Tree>ElseClauseImpl. computeChildren()List<Tree>ExceptClauseImpl. computeChildren()List<Tree>ExecStatementImpl. computeChildren()List<Tree>ExpressionListImpl. computeChildren()List<Tree>ExpressionStatementImpl. computeChildren()List<Tree>FileInputImpl. computeChildren()List<Tree>FinallyClauseImpl. computeChildren()List<Tree>ForStatementImpl. computeChildren()List<Tree>FunctionDefImpl. computeChildren()List<Tree>GlobalStatementImpl. computeChildren()List<Tree>IfStatementImpl. computeChildren()List<Tree>ImportFromImpl. computeChildren()List<Tree>ImportNameImpl. computeChildren()List<Tree>InExpressionImpl. computeChildren()List<Tree>IsExpressionImpl. computeChildren()List<Tree>KeyValuePairImpl. computeChildren()List<Tree>LambdaExpressionImpl. computeChildren()List<Tree>ListLiteralImpl. computeChildren()List<Tree>MappingPatternImpl. computeChildren()List<Tree>NameImpl. computeChildren()List<Tree>NoneExpressionImpl. computeChildren()List<Tree>NonlocalStatementImpl. computeChildren()List<Tree>NumericLiteralImpl. computeChildren()List<Tree>ParameterImpl. computeChildren()List<Tree>ParameterListImpl. computeChildren()List<Tree>ParenthesizedExpressionImpl. computeChildren()List<Tree>PassStatementImpl. computeChildren()List<Tree>PrintStatementImpl. computeChildren()List<Tree>QualifiedExpressionImpl. computeChildren()List<Tree>RaiseStatementImpl. computeChildren()List<Tree>RegularArgumentImpl. computeChildren()List<Tree>ReprExpressionImpl. computeChildren()List<Tree>ReturnStatementImpl. computeChildren()List<Tree>SliceExpressionImpl. computeChildren()List<Tree>SliceItemImpl. computeChildren()List<Tree>SliceListImpl. computeChildren()List<Tree>StatementListImpl. computeChildren()List<Tree>StringElementImpl. computeChildren()List<Tree>StringLiteralImpl. computeChildren()List<Tree>SubscriptionExpressionImpl. computeChildren()List<Tree>TokenImpl. computeChildren()List<Tree>TryStatementImpl. computeChildren()List<Tree>TupleImpl. computeChildren()List<Tree>TupleParameterImpl. computeChildren()List<Tree>TypeAnnotationImpl. computeChildren()List<Tree>UnaryExpressionImpl. computeChildren()List<Tree>UnpackingExpressionImpl. computeChildren()List<Tree>WhileStatementImpl. computeChildren()List<Tree>WithStatementImpl. computeChildren()List<Tree>WithStatementImpl.WithItemImpl. computeChildren()List<Tree>YieldExpressionImpl. computeChildren()List<Tree>YieldStatementImpl. computeChildren()static Optional<Tree>TreeUtils. firstChild(Tree tree, Predicate<Tree> filter)static Comparator<Tree>TreeUtils. getTreeByPositionComparator()static Collector<Tree,?,Map<Tree,Tree>>TreeUtils. groupAssignmentByParentStatementList()static Collector<Tree,?,Map<Tree,Tree>>TreeUtils. groupAssignmentByParentStatementList()static Collector<Tree,?,Map<Tree,Tree>>TreeUtils. groupAssignmentByParentStatementList()List<Tree>SliceListImpl. slices()static <T extends Tree>
Function<Tree,T>TreeUtils. toInstanceOfMapper(Class<T> castToClass)static <T extends Tree>
Function<Tree,Optional<T>>TreeUtils. toOptionalInstanceOfMapper(Class<T> castToClass)Methods in org.sonar.python.tree with parameters of type Tree Modifier and Type Method Description static intTreeUtils. findIndentationSize(Tree tree)static TreeTreeUtils. firstAncestor(Tree tree, Predicate<Tree> predicate)static TreeTreeUtils. firstAncestorOfKind(Tree tree, Tree.Kind... kinds)static Optional<Tree>TreeUtils. firstChild(Tree tree, Predicate<Tree> filter)static Optional<Symbol>TreeUtils. getSymbolFromTree(Tree tree)static TokenTreeUtils. getTreeSeparatorOrLastToken(Tree tree)Statements can have a separator like semicolon.static booleanTreeUtils. hasDescendant(Tree tree, Predicate<Tree> predicate)static booleanTreeUtils. isBooleanLiteral(Tree tree)static LocationInFileTreeUtils. locationInFile(Tree tree, String fileId)static List<Token>TreeUtils. nonWhitespaceTokens(Tree tree)protected voidPyTree. setParent(Tree parent)voidPythonTreeMaker. setParents(Tree root)static List<Token>TreeUtils. tokens(Tree tree)static <T extends Tree>
Optional<T>TreeUtils. toOptionalInstanceOf(Class<T> castToClass, Tree tree)static StringTreeUtils. treeToString(Tree tree, boolean renderMultiline)Method parameters in org.sonar.python.tree with type arguments of type Tree Modifier and Type Method Description static TreeTreeUtils. firstAncestor(Tree tree, Predicate<Tree> predicate)static Optional<Tree>TreeUtils. firstChild(Tree tree, Predicate<Tree> filter)static booleanTreeUtils. hasDescendant(Tree tree, Predicate<Tree> predicate)Constructors in org.sonar.python.tree with parameters of type Tree Constructor Description LineMagicImpl(Token percent, Tree name, List<Token> tokens)Constructor parameters in org.sonar.python.tree with type arguments of type Tree Constructor Description FormatSpecifierImpl(Token columnToken, List<Tree> fStringMiddles)SliceListImpl(List<Tree> slices, List<Token> separators)StringElementImpl(Token token, List<Tree> fStringMiddles, Token fstringEnd)
-