Uses of Interface
org.sonar.plugins.php.api.tree.Tree
-
-
Uses of Tree in org.sonar.php.cfg
Methods in org.sonar.php.cfg with parameters of type Tree Modifier and Type Method Description Map<Symbol,LiveVariablesAnalysis.VariableUsage>LiveVariablesAnalysis.LiveVariables. getVariableUsages(Tree tree) -
Uses of Tree in org.sonar.php.highlighter
Methods in org.sonar.php.highlighter with parameters of type Tree Modifier and Type Method Description static voidSyntaxHighlighterVisitor. highlight(Tree tree, org.sonar.api.batch.sensor.highlighting.NewHighlighting highlighting) -
Uses of Tree in org.sonar.php.metrics
Methods in org.sonar.php.metrics that return Tree Modifier and Type Method Description TreeCognitiveComplexityVisitor.ComplexityComponent. tree()Methods in org.sonar.php.metrics that return types with arguments of type Tree Modifier and Type Method Description static List<Tree>ComplexityVisitor. complexityNodesWithoutNestedFunctions(Tree tree)static List<Tree>ComplexityVisitor. complexityTrees(Tree tree)Methods in org.sonar.php.metrics with parameters of type Tree Modifier and Type Method Description static intComplexityVisitor. complexity(Tree tree)static List<Tree>ComplexityVisitor. complexityNodesWithoutNestedFunctions(Tree tree)static List<Tree>ComplexityVisitor. complexityTrees(Tree tree)static intLineVisitor. linesOfCode(Tree tree)voidCounterVisitor. visitNode(Tree tree)voidMetricsVisitor. visitNode(Tree tree)Constructors in org.sonar.php.metrics with parameters of type Tree Constructor Description CounterVisitor(Tree tree)ShallowComplexityVisitor(Tree root) -
Uses of Tree in org.sonar.php.parser
Methods in org.sonar.php.parser that return Tree Modifier and Type Method Description TreePHPParser. parse(File file)TreePHPParser. parse(String source)Methods in org.sonar.php.parser that return types with arguments of type Tree Modifier and Type Method Description static com.sonar.sslr.api.typed.ActionParser<Tree>PHPParserBuilder. createParser()static com.sonar.sslr.api.typed.ActionParser<Tree>PHPParserBuilder. createParser(org.sonar.sslr.grammar.GrammarRuleKey rootRule)This method should be used by tests only.static com.sonar.sslr.api.typed.ActionParser<Tree>PHPParserBuilder. createParser(org.sonar.sslr.grammar.GrammarRuleKey rootRule, int lineOffset)This method should be used if required to shift line of tokensMethods in org.sonar.php.parser with parameters of type Tree Modifier and Type Method Description ArrayAssignmentPatternElementTreeTreeFactory. arrayAssignmentPatternElement(com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<ExpressionTree,InternalSyntaxToken>> key, Tree variable)MemberAccessTreeTreeFactory. classMemberAccess(InternalSyntaxToken token, Tree member)ExpressionTreeTreeFactory. encapsulatedComplexVariable(InternalSyntaxToken openCurly, Tree lookahead, ExpressionTree expression, InternalSyntaxToken closeCurly)ExpandableStringLiteralTreeTreeFactory. expandableStringLiteral(Tree spacing, InternalSyntaxToken openDoubleQuote, List<ExpressionTree> expressions, InternalSyntaxToken closeDoubleQuote)MethodDeclarationTreeTreeFactory. methodDeclaration(com.sonar.sslr.api.typed.Optional<List<AttributeGroupTree>> attributes, com.sonar.sslr.api.typed.Optional<List<SyntaxToken>> modifiers, InternalSyntaxToken functionToken, com.sonar.sslr.api.typed.Optional<InternalSyntaxToken> referenceToken, NameIdentifierTree name, ParameterListTree parameters, com.sonar.sslr.api.typed.Optional<ReturnTypeClauseTree> returnTypeClause, Tree body) -
Uses of Tree in org.sonar.php.tree
Methods in org.sonar.php.tree with type parameters of type Tree Modifier and Type Method Description static <T extends Tree>
Stream<T>TreeUtils. descendants(Tree root, Class<T> clazz)static <T extends Tree>
Optional<T>TreeUtils. firstDescendant(Tree root, Class<T> clazz)Methods in org.sonar.php.tree that return Tree Modifier and Type Method Description static TreeTreeUtils. findAncestorWithKind(Tree tree, Collection<Tree.Kind> kinds)Methods in org.sonar.php.tree that return types with arguments of type Tree Modifier and Type Method Description static Stream<Tree>TreeUtils. descendants(Tree root)static Optional<Tree>TreeUtils. firstDescendant(Tree root, Predicate<Tree> predicate)Methods in org.sonar.php.tree with parameters of type Tree Modifier and Type Method Description static Stream<Tree>TreeUtils. descendants(Tree root)static <T extends Tree>
Stream<T>TreeUtils. descendants(Tree root, Class<T> clazz)static TreeTreeUtils. findAncestorWithKind(Tree tree, Collection<Tree.Kind> kinds)static <T extends Tree>
Optional<T>TreeUtils. firstDescendant(Tree root, Class<T> clazz)static Optional<Tree>TreeUtils. firstDescendant(Tree root, Predicate<Tree> predicate)static booleanTreeUtils. isDescendant(Tree tree, Tree potentialParent)Method parameters in org.sonar.php.tree with type arguments of type Tree Modifier and Type Method Description static Optional<Tree>TreeUtils. firstDescendant(Tree root, Predicate<Tree> predicate) -
Uses of Tree in org.sonar.php.tree.impl
Classes in org.sonar.php.tree.impl with type parameters of type Tree Modifier and Type Class Description classSeparatedListImpl<T extends Tree>Classes in org.sonar.php.tree.impl that implement Tree Modifier and Type Class Description classCompilationUnitTreeImplclassPHPTreeclassScriptTreeImplclassVariableIdentifierTreeImplMethods in org.sonar.php.tree.impl with type parameters of type Tree Modifier and Type Method Description static <T extends Tree>
SeparatedListImpl<T>SeparatedListImpl. empty()Methods in org.sonar.php.tree.impl that return Tree Modifier and Type Method Description TreePHPTree. getParent()Methods in org.sonar.php.tree.impl that return types with arguments of type Tree Modifier and Type Method Description Iterator<Tree>CompilationUnitTreeImpl. childrenIterator()abstract Iterator<Tree>PHPTree. childrenIterator()Creates iterator for children of this node.Iterator<Tree>ScriptTreeImpl. childrenIterator()Iterator<Tree>VariableIdentifierTreeImpl. childrenIterator()Iterator<Tree>SeparatedListImpl. elementsAndSeparators()Iterator<Tree>SeparatedListImpl. elementsAndSeparators(com.google.common.base.Function<T,? extends Tree> elementTransformer)Methods in org.sonar.php.tree.impl with parameters of type Tree Modifier and Type Method Description voidPHPTree. setParent(Tree parent)Method parameters in org.sonar.php.tree.impl with type arguments of type Tree Modifier and Type Method Description Iterator<Tree>SeparatedListImpl. elementsAndSeparators(com.google.common.base.Function<T,? extends Tree> elementTransformer) -
Uses of Tree in org.sonar.php.tree.impl.declaration
Classes in org.sonar.php.tree.impl.declaration that implement Tree Modifier and Type Class Description classAttributeGroupTreeImplclassAttributeTreeImplclassBuiltInTypeTreeImplclassCallArgumentTreeImplclassClassDeclarationTreeImplclassClassNamespaceNameTreeImplclassClassPropertyDeclarationTreeImplclassConstantDeclarationTreeImplclassFunctionDeclarationTreeImplclassMethodDeclarationTreeImplclassNamespaceNameTreeImplclassParameterListTreeImplclassParameterTreeImplclassReturnTypeClauseTreeImplclassTraitAliasTreeImplclassTraitMethodReferenceTreeImplclassTraitPrecedenceTreeImplclassTypeTreeImplclassUnionTypeTreeImplclassUseClauseTreeImplclassUseTraitDeclarationTreeImplMethods in org.sonar.php.tree.impl.declaration that return Tree Modifier and Type Method Description TreeMethodDeclarationTreeImpl. body()Methods in org.sonar.php.tree.impl.declaration that return types with arguments of type Tree Modifier and Type Method Description Iterator<Tree>AttributeGroupTreeImpl. childrenIterator()Iterator<Tree>AttributeTreeImpl. childrenIterator()Iterator<Tree>BuiltInTypeTreeImpl. childrenIterator()Iterator<Tree>CallArgumentTreeImpl. childrenIterator()Iterator<Tree>ClassDeclarationTreeImpl. childrenIterator()Iterator<Tree>ClassPropertyDeclarationTreeImpl. childrenIterator()Iterator<Tree>ConstantDeclarationTreeImpl. childrenIterator()Iterator<Tree>FunctionDeclarationTreeImpl. childrenIterator()Iterator<Tree>MethodDeclarationTreeImpl. childrenIterator()Iterator<Tree>NamespaceNameTreeImpl. childrenIterator()Iterator<Tree>ParameterListTreeImpl. childrenIterator()Iterator<Tree>ParameterTreeImpl. childrenIterator()Iterator<Tree>ReturnTypeClauseTreeImpl. childrenIterator()Iterator<Tree>TraitAliasTreeImpl. childrenIterator()Iterator<Tree>TraitMethodReferenceTreeImpl. childrenIterator()Iterator<Tree>TraitPrecedenceTreeImpl. childrenIterator()Iterator<Tree>TypeTreeImpl. childrenIterator()Iterator<Tree>UnionTypeTreeImpl. childrenIterator()Iterator<Tree>UseClauseTreeImpl. childrenIterator()Iterator<Tree>UseTraitDeclarationTreeImpl. childrenIterator()Constructors in org.sonar.php.tree.impl.declaration with parameters of type Tree Constructor Description MethodDeclarationTreeImpl(List<AttributeGroupTree> attributeGroups, List<SyntaxToken> modifiersToken, InternalSyntaxToken functionToken, InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, ReturnTypeClauseTree returnTypeClause, Tree body) -
Uses of Tree in org.sonar.php.tree.impl.expression
Methods in org.sonar.php.tree.impl.expression that return Tree Modifier and Type Method Description TreeMemberAccessTreeImpl. member()TreeArrayAssignmentPatternElementTreeImpl. variable()Methods in org.sonar.php.tree.impl.expression that return types with arguments of type Tree Modifier and Type Method Description Iterator<Tree>AnonymousClassTreeImpl. childrenIterator()Iterator<Tree>ArrayAccessTreeImpl. childrenIterator()Iterator<Tree>ArrayAssignmentPatternElementTreeImpl. childrenIterator()Iterator<Tree>ArrayAssignmentPatternTreeImpl. childrenIterator()Iterator<Tree>ArrayInitializerBracketTreeImpl. childrenIterator()Iterator<Tree>ArrayInitializerFunctionTreeImpl. childrenIterator()Iterator<Tree>ArrayPairTreeImpl. childrenIterator()Iterator<Tree>ArrowFunctionExpressionTreeImpl. childrenIterator()Iterator<Tree>AssignmentByReferenceTreeImpl. childrenIterator()Iterator<Tree>AssignmentExpressionTreeImpl. childrenIterator()Iterator<Tree>BinaryExpressionTreeImpl. childrenIterator()Iterator<Tree>CastExpressionTreeImpl. childrenIterator()Iterator<Tree>CompoundVariableTreeImpl. childrenIterator()Iterator<Tree>ComputedVariableTreeImpl. childrenIterator()Iterator<Tree>ConditionalExpressionTreeImpl. childrenIterator()Iterator<Tree>ExecutionOperatorTreeImpl. childrenIterator()Iterator<Tree>ExpandableStringCharactersTreeImpl. childrenIterator()Iterator<Tree>ExpandableStringLiteralTreeImpl. childrenIterator()Iterator<Tree>FunctionCallTreeImpl. childrenIterator()Iterator<Tree>FunctionExpressionTreeImpl. childrenIterator()Iterator<Tree>HeredocStringLiteralTreeImpl. childrenIterator()Iterator<Tree>HeredocStringLiteralTreeImpl.HeredocBody. childrenIterator()Iterator<Tree>LexicalVariablesTreeImpl. childrenIterator()Iterator<Tree>ListExpressionTreeImpl. childrenIterator()Iterator<Tree>LiteralTreeImpl. childrenIterator()Iterator<Tree>MatchConditionClauseTreeImpl. childrenIterator()Iterator<Tree>MatchDefaultClauseTreeImpl. childrenIterator()Iterator<Tree>MatchExpressionTreeImpl. childrenIterator()Iterator<Tree>MemberAccessTreeImpl. childrenIterator()Iterator<Tree>NameIdentifierTreeImpl. childrenIterator()Iterator<Tree>NewExpressionTreeImpl. childrenIterator()Iterator<Tree>ParenthesizedExpressionTreeImpl. childrenIterator()Iterator<Tree>PostfixExpressionTreeImpl. childrenIterator()Iterator<Tree>PrefixedCastExpressionTreeImpl. childrenIterator()Iterator<Tree>PrefixExpressionTreeImpl. childrenIterator()Iterator<Tree>ReferenceVariableTreeImpl. childrenIterator()Iterator<Tree>SpreadArgumentTreeImpl. childrenIterator()Iterator<Tree>ThrowExpressionTreeImpl. childrenIterator()Iterator<Tree>VariableVariableTreeImpl. childrenIterator()Iterator<Tree>YieldExpressionTreeImpl. childrenIterator()List<Tree>ArrayAssignmentPatternElements. elementsAndSeparators()Constructors in org.sonar.php.tree.impl.expression with parameters of type Tree Constructor Description ArrayAssignmentPatternElementTreeImpl(ExpressionTree key, InternalSyntaxToken doubleArrow, Tree variable)ArrayAssignmentPatternElementTreeImpl(Tree variable)MemberAccessTreeImpl(Tree.Kind kind, InternalSyntaxToken accessToken, Tree member) -
Uses of Tree in org.sonar.php.tree.impl.lexical
Classes in org.sonar.php.tree.impl.lexical that implement Tree Modifier and Type Class Description classInternalSyntaxTokenclassInternalSyntaxTriviaMethods in org.sonar.php.tree.impl.lexical that return types with arguments of type Tree Modifier and Type Method Description Iterator<Tree>InternalSyntaxToken. childrenIterator()Iterator<Tree>InternalSyntaxTrivia. childrenIterator() -
Uses of Tree in org.sonar.php.tree.impl.statement
Classes in org.sonar.php.tree.impl.statement that implement Tree Modifier and Type Class Description classBlockTreeImplclassBreakStatementTreeImplclassCaseClauseTreeImplclassCatchBlockTreeImplclassContinueStatementTreeImplclassDeclareStatementTreeImplclassDefaultClauseTreeImplclassDoWhileStatementTreeImplclassEchoTagStatementTreeImplclassElseClauseTreeImplclassElseifClauseTreeImplclassEmptyStatementImplclassExpressionListStatementTreeImplclassExpressionStatementTreeImplclassForEachStatementTreeImplclassForStatementTreeImplclassGlobalStatementTreeImplclassGotoStatementTreeImplclassIfStatementTreeImplclassInlineHTMLTreeImplclassLabelTreeImplclassNamespaceStatementTreeImplclassReturnStatementTreeImplclassStaticStatementTreeImplclassSwitchStatementTreeImplclassThrowStatementTreeImplclassTryStatementTreeImplclassUnsetVariableStatementTreeImplclassUseStatementTreeImplclassVariableDeclarationTreeImplclassWhileStatementTreeImplMethods in org.sonar.php.tree.impl.statement that return types with arguments of type Tree Modifier and Type Method Description Iterator<Tree>BlockTreeImpl. childrenIterator()Iterator<Tree>BreakStatementTreeImpl. childrenIterator()Iterator<Tree>CaseClauseTreeImpl. childrenIterator()Iterator<Tree>CatchBlockTreeImpl. childrenIterator()Iterator<Tree>ContinueStatementTreeImpl. childrenIterator()Iterator<Tree>DeclareStatementTreeImpl. childrenIterator()Iterator<Tree>DefaultClauseTreeImpl. childrenIterator()Iterator<Tree>DoWhileStatementTreeImpl. childrenIterator()Iterator<Tree>EchoTagStatementTreeImpl. childrenIterator()Iterator<Tree>ElseClauseTreeImpl. childrenIterator()Iterator<Tree>ElseifClauseTreeImpl. childrenIterator()Iterator<Tree>EmptyStatementImpl. childrenIterator()Iterator<Tree>ExpressionListStatementTreeImpl. childrenIterator()Iterator<Tree>ExpressionStatementTreeImpl. childrenIterator()Iterator<Tree>ForEachStatementTreeImpl. childrenIterator()Iterator<Tree>ForStatementTreeImpl. childrenIterator()Iterator<Tree>GlobalStatementTreeImpl. childrenIterator()Iterator<Tree>GotoStatementTreeImpl. childrenIterator()Iterator<Tree>IfStatementTreeImpl. childrenIterator()Iterator<Tree>InlineHTMLTreeImpl. childrenIterator()Iterator<Tree>LabelTreeImpl. childrenIterator()Iterator<Tree>NamespaceStatementTreeImpl. childrenIterator()Iterator<Tree>ReturnStatementTreeImpl. childrenIterator()Iterator<Tree>StaticStatementTreeImpl. childrenIterator()Iterator<Tree>SwitchStatementTreeImpl. childrenIterator()Iterator<Tree>ThrowStatementTreeImpl. childrenIterator()Iterator<Tree>TryStatementTreeImpl. childrenIterator()Iterator<Tree>UnsetVariableStatementTreeImpl. childrenIterator()Iterator<Tree>UseStatementTreeImpl. childrenIterator()Iterator<Tree>VariableDeclarationTreeImpl. childrenIterator()Iterator<Tree>WhileStatementTreeImpl. childrenIterator() -
Uses of Tree in org.sonar.php.tree.symbols
Methods in org.sonar.php.tree.symbols that return Tree Modifier and Type Method Description TreeScope. tree()Methods in org.sonar.php.tree.symbols with parameters of type Tree Modifier and Type Method Description ScopeSymbolTableImpl. getScopeFor(Tree tree)SymbolSymbolTableImpl. getSymbol(Tree tree)Constructors in org.sonar.php.tree.symbols with parameters of type Tree Constructor Description Scope(Scope outer, Tree tree, boolean captureOuterScope) -
Uses of Tree in org.sonar.php.tree.visitors
Methods in org.sonar.php.tree.visitors with parameters of type Tree Modifier and Type Method Description PreciseIssuePHPCheckContext. newIssue(PHPCheck check, Tree tree, String message)PreciseIssuePHPCheckContext. newIssue(PHPCheck check, Tree startTree, Tree endTree, String message)LegacyIssueLegacyIssue. tree(Tree tree) -
Uses of Tree in org.sonar.php.utils
Methods in org.sonar.php.utils with parameters of type Tree Modifier and Type Method Description static StringSourceBuilder. build(Tree tree)voidSourceBuilder. visitNode(Tree tree) -
Uses of Tree in org.sonar.plugins.php.api.cfg
Methods in org.sonar.plugins.php.api.cfg that return Tree Modifier and Type Method Description TreeCfgBranchingBlock. branchingTree()Syntax tree causing branching: e.g.Methods in org.sonar.plugins.php.api.cfg that return types with arguments of type Tree Modifier and Type Method Description List<Tree>CfgBlock. elements()Methods in org.sonar.plugins.php.api.cfg with parameters of type Tree Modifier and Type Method Description static ControlFlowGraphControlFlowGraph. build(Tree tree, CheckContext context)WARNING: This is an experimental API, it may change without notice. -
Uses of Tree in org.sonar.plugins.php.api.symbols
Methods in org.sonar.plugins.php.api.symbols with parameters of type Tree Modifier and Type Method Description ScopeSymbolTable. getScopeFor(Tree tree)SymbolSymbolTable. getSymbol(Tree tree) -
Uses of Tree in org.sonar.plugins.php.api.tree
Classes in org.sonar.plugins.php.api.tree with type parameters of type Tree Modifier and Type Interface Description interfaceSeparatedList<T extends Tree>Subinterfaces of Tree in org.sonar.plugins.php.api.tree Modifier and Type Interface Description interfaceCompilationUnitTreeCompilation UnitinterfaceScriptTreePHP ScriptMethods in org.sonar.plugins.php.api.tree that return Tree Modifier and Type Method Description TreeTree. getParent()Methods in org.sonar.plugins.php.api.tree that return types with arguments of type Tree Modifier and Type Method Description Iterator<Tree>SeparatedList. elementsAndSeparators()Iterator<Tree>SeparatedList. elementsAndSeparators(com.google.common.base.Function<T,? extends Tree> elementTransformer)Class<? extends Tree>Tree.Kind. getAssociatedInterface()Method parameters in org.sonar.plugins.php.api.tree with type arguments of type Tree Modifier and Type Method Description Iterator<Tree>SeparatedList. elementsAndSeparators(com.google.common.base.Function<T,? extends Tree> elementTransformer) -
Uses of Tree in org.sonar.plugins.php.api.tree.declaration
Subinterfaces of Tree in org.sonar.plugins.php.api.tree.declaration Modifier and Type Interface Description interfaceAttributeGroupTreeinterfaceAttributeTreeinterfaceBuiltInTypeTreeinterfaceCallArgumentTreeinterfaceClassDeclarationTreeinterfaceClassMemberTreeThis interface represents class statement, which can be:Method declarationClass variable declarationTrait use statementinterfaceClassPropertyDeclarationTreeClass PropertiesinterfaceClassTreeCommon interface forClassDeclarationTreeandAnonymousClassTreeinterfaceConstantDeclarationTreeConstants declarationinterfaceDeclaredTypeTreeEither aTypeTreeor aUnionTypeTreeinterfaceFunctionDeclarationTreeinterfaceFunctionTreeCommon interface for all kinds of function.interfaceMethodDeclarationTreeClass MethodsinterfaceNamespaceNameTreeNamespace name Unqualified name: this is an identifier without a namespace separator, such as Foo Qualified name: this is an identifier with a namespace separator, such as Foo\Bar Fully qualified name: this is an identifier with a namespace separator that begins with a namespace separator, such as \Foo\Bar.interfaceParameterListTreeFunction parameters ListinterfaceParameterTreeinterfaceReturnTypeClauseTreeReturnTypeClauseTree is an optional element of function declarationinterfaceTypeNameTreeThis interface represents type clause (appearing in function return type, parameter type or class property type (since PHP 7.4), which can be:Tree.Kind.BUILT_IN_TYPEseeBuiltInTypeTreeTree.Kind.NAMESPACE_NAMEfor custom class or interface typeinterfaceTypeTreeThis interface represents type clause (appearing in function return type or parameter type), possibly prefixed with a?which stands for "optional".interfaceUnionTypeTreeinterfaceVariableDeclarationTreeVariable DeclarationMethods in org.sonar.plugins.php.api.tree.declaration that return Tree Modifier and Type Method Description TreeFunctionTree. body()TreeMethodDeclarationTree. body() -
Uses of Tree in org.sonar.plugins.php.api.tree.expression
Methods in org.sonar.plugins.php.api.tree.expression that return Tree Modifier and Type Method Description TreeMemberAccessTree. member()TreeArrayAssignmentPatternElementTree. variable() -
Uses of Tree in org.sonar.plugins.php.api.tree.lexical
Subinterfaces of Tree in org.sonar.plugins.php.api.tree.lexical Modifier and Type Interface Description interfaceSyntaxTokenRepresents a token in the syntax tree.interfaceSyntaxTriviaRepresents a Trivia in the SyntaxTree. -
Uses of Tree in org.sonar.plugins.php.api.tree.statement
Subinterfaces of Tree in org.sonar.plugins.php.api.tree.statement Modifier and Type Interface Description interfaceBlockTreeA BlockTree is a list of zero or moreBlockTree.statements()between braces which can be used anywhere a single statement is allowed.interfaceBreakStatementTreeinterfaceCaseClauseTreeCase clause in switch statement (seeSwitchStatementTree).interfaceCatchBlockTreeCatch block of try statement (seeTryStatementTree).interfaceContinueStatementTreeinterfaceDeclareStatementTreeinterfaceDefaultClauseTreeDefault case clause in switch statement (seeSwitchStatementTree).interfaceDoWhileStatementTreeinterfaceEchoTagStatementTreeAn EchoTagStatementTree is an AST node that wrap an expression list to represent the php tag: <?=EchoTagStatementTree.expressions()?>interfaceElseClauseTreeinterfaceElseifClauseTreeinterfaceEmptyStatementTreeAn empty statement is written as a single semicolon (;).interfaceExpressionListStatementTreeDeprecated.since 3.1.interfaceExpressionStatementTreeExpression statement is used for processing expressions, e.g.interfaceForEachStatementTreeRepresents foreach statement and alternative foreach statement syntax as well.interfaceForStatementTreeRepresents for statement and alternative for statement syntax as well.interfaceGlobalStatementTreeGlobal variable declarationinterfaceGotoStatementTreeinterfaceIfStatementTreeRepresents if statement and alternative if statement syntax as well.interfaceInlineHTMLTreeThis interface presents HTML code embedded into php code.interfaceLabelTreeLabel which is used by goto statement.interfaceNamespaceStatementTreeNamespace definitioninterfaceReturnStatementTreeinterfaceStatementTreeParent interface for all the trees representing statements (e.g.interfaceStaticStatementTreeStatic variable declarationinterfaceSwitchCaseClauseTreeGeneral interface for switch clauses.interfaceSwitchStatementTreeinterfaceThrowStatementTreeinterfaceTraitAdaptationStatementTreeinterfaceTraitAliasTreeinterfaceTraitMethodReferenceTreeinterfaceTraitPrecedenceTreeinterfaceTryStatementTreeinterfaceUnsetVariableStatementTreeinterfaceUseClauseTreeUse namespaces declaration clauseinterfaceUseStatementTreeUse namespaces declarationinterfaceUseTraitDeclarationTreeinterfaceWhileStatementTreeRepresents while statement and alternative while statement syntax as well. -
Uses of Tree in org.sonar.plugins.php.api.visitors
Methods in org.sonar.plugins.php.api.visitors with type parameters of type Tree Modifier and Type Method Description protected <T extends Tree>
voidPHPVisitorCheck. scan(List<T> trees)Methods in org.sonar.plugins.php.api.visitors with parameters of type Tree Modifier and Type Method Description voidPHPTreeSubscriber. leaveNode(Tree tree)PreciseIssueCheckContext. newIssue(PHPCheck check, Tree tree, String message)To add secondary locations and cost usePreciseIssue.secondary(Tree, String)andPreciseIssue.cost(double).PreciseIssueCheckContext. newIssue(PHPCheck check, Tree startTree, Tree endTree, String message)To add secondary locations and cost usePreciseIssue.secondary(Tree, String)andPreciseIssue.cost(double).PreciseIssuePHPCheck. newIssue(Tree tree, String message)PreciseIssuePHPSubscriptionCheck. newIssue(Tree tree, String message)PreciseIssuePHPVisitorCheck. newIssue(Tree tree, String message)protected voidPHPVisitorCheck. scan(Tree tree)voidPHPTreeSubscriber. scanTree(Tree tree)PreciseIssuePreciseIssue. secondary(Tree tree, String message)PreciseIssuePreciseIssue. secondary(Tree startTree, Tree endTree, String message)IssueIssue. tree(Tree tree)voidPHPTreeSubscriber. visitNode(Tree tree)Constructors in org.sonar.plugins.php.api.visitors with parameters of type Tree Constructor Description IssueLocation(Tree tree, String message)IssueLocation(Tree startTree, Tree endTree, String message)
-