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,UnpackingExpressioninterfaceAssertStatementinterfaceAssignmentStatementinterfaceAwaitExpressioninterfaceBinaryExpressioninterfaceBreakStatementSee https://docs.python.org/3/reference/simple_stmts.html#grammar-token-break-stmtinterfaceCallExpressioninterfaceClassDefinterfaceCompoundAssignmentStatementinterfaceComprehensionClauseinterfaceComprehensionExpressioninterfaceComprehensionForinterfaceComprehensionIfinterfaceConditionalExpressioninterfaceContinueStatementSee https://docs.python.org/3/reference/simple_stmts.html#the-continue-statementinterfaceDecoratorinterfaceDelStatementinterfaceDictCompExpressionDictionary ComprehensioninterfaceDictionaryLiteralinterfaceDictionaryLiteralElementIt can be eitherKeyValuePairorUnpackingExpressioninterfaceDottedNameExample:os.envorCrypto.Cipher.AESinterfaceEllipsisExpressionRepresents 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()interfaceForStatementinterfaceFunctionDefinterfaceFunctionLikeCommon interface forFunctionDefandLambdaExpressioninterfaceGlobalStatementglobalGlobalStatement.variables()interfaceIfStatementif-elif-else statement.interfaceImportFromImport From statementinterfaceImportNameImport statementinterfaceImportStatementImport statement See https://docs.python.org/3/reference/simple_stmts.html#grammar-token-import-stmtinterfaceInExpressioninterfaceIsExpressioninterfaceKeyValuePairinterfaceLambdaExpressioninterfaceListLiteralinterfaceNameSee https://docs.python.org/3/reference/expressions.html#atom-identifiersinterfaceNoneExpressionSee https://docs.python.org/3/library/constants.html#NoneinterfaceNonlocalStatementnonlocalNonlocalStatement.variables()interfaceNumericLiteralinterfaceParameterinterfaceParameterListSee https://docs.python.org/3/reference/compound_stmts.html#grammar-token-parameter-listinterfaceParenthesizedExpressioninterfacePassStatementhttps://docs.python.org/3/reference/simple_stmts.html#grammar-token-pass-stmtinterfacePrintStatementPython 2 only.interfaceQualifiedExpressionQualified expression like "foo.bar"interfaceRaiseStatementinterfaceRegularArgumentinterfaceReprExpressionPython 2 only.interfaceReturnStatementinterfaceSetLiteralinterfaceSliceExpressioninterfaceSliceIteminterfaceSliceListinterfaceStatementinterfaceStatementListinterfaceStringElementinterfaceStringLiteralSee https://docs.python.org/3/reference/lexical_analysis.html#string-literal-concatenationinterfaceSubscriptionExpressioninterfaceTokeninterfaceTryStatementinterfaceTuple(Tuple.elements())interfaceTupleParameterPython 2 onlyinterfaceTypeAnnotationinterfaceUnaryExpressioninterfaceUnpackingExpressioninterfaceWhileStatementinterfaceWithIteminterfaceWithStatementinterfaceYieldExpressioninterfaceYieldStatementSee 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,UsageVisitor.SymbolUsage>>CfgBlockState. variableUsagesPerElementMethods in org.sonar.python.cfg.fixpoint with parameters of type Tree Modifier and Type Method Description Map<Symbol,UsageVisitor.SymbolUsage>CfgBlockState. getVariableUsages(Tree tree) -
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.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.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 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>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()List<Tree>SliceListImpl. slices()Methods in org.sonar.python.tree with parameters of type Tree Modifier and Type Method Description static TreeTreeUtils. firstAncestor(Tree tree, Predicate<Tree> predicate)static TreeTreeUtils. firstAncestorOfKind(Tree tree, Tree.Kind... kinds)static booleanTreeUtils. hasDescendant(Tree tree, Predicate<Tree> predicate)static List<Token>TreeUtils. nonWhitespaceTokens(Tree tree)protected voidPyTree. setParent(Tree parent)voidPythonTreeMaker. setParents(Tree root)static List<Token>TreeUtils. tokens(Tree tree)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 booleanTreeUtils. hasDescendant(Tree tree, Predicate<Tree> predicate)Constructor parameters in org.sonar.python.tree with type arguments of type Tree Constructor Description SliceListImpl(List<Tree> slices, List<Token> separators)
-