Uses of Interface
org.sonar.plugins.php.api.tree.Tree
Packages that use Tree
Package
Description
-
Uses of Tree in org.sonar.php.cfg
Methods in org.sonar.php.cfg with parameters of type TreeModifier and TypeMethodDescriptionLiveVariablesAnalysis.LiveVariables.getVariableUsages
(Tree tree) -
Uses of Tree in org.sonar.php.highlighter
Methods in org.sonar.php.highlighter with parameters of type Tree -
Uses of Tree in org.sonar.php.metrics
Methods in org.sonar.php.metrics that return TreeMethods in org.sonar.php.metrics that return types with arguments of type TreeModifier and TypeMethodDescriptionComplexityVisitor.complexityNodesWithoutNestedFunctions
(Tree tree) ComplexityVisitor.complexityTrees
(Tree tree) Methods in org.sonar.php.metrics with parameters of type TreeModifier and TypeMethodDescriptionstatic int
ComplexityVisitor.complexity
(Tree tree) ComplexityVisitor.complexityNodesWithoutNestedFunctions
(Tree tree) ComplexityVisitor.complexityTrees
(Tree tree) static int
LineVisitor.linesOfCode
(Tree tree) void
void
Constructors in org.sonar.php.metrics with parameters of type Tree -
Uses of Tree in org.sonar.php.parser
Methods in org.sonar.php.parser that return TreeModifier and TypeMethodDescriptionMethods in org.sonar.php.parser that return types with arguments of type TreeModifier and TypeMethodDescriptionstatic 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 TreeModifier and TypeMethodDescriptionTreeFactory.arrayAssignmentPatternElement
(com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<ExpressionTree, InternalSyntaxToken>> key, Tree variable) TreeFactory.classMemberAccess
(InternalSyntaxToken token, Tree member) TreeFactory.encapsulatedComplexVariable
(InternalSyntaxToken openCurly, Tree lookahead, ExpressionTree expression, InternalSyntaxToken closeCurly) TreeFactory.expandableStringLiteral
(Tree spacing, InternalSyntaxToken openDoubleQuote, List<ExpressionTree> expressions, InternalSyntaxToken closeDoubleQuote) TreeFactory.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 TreeModifier and TypeMethodDescriptionTreeUtils.descendants
(Tree root, Class<T> clazz) TreeUtils.firstDescendant
(Tree root, Class<T> clazz) Methods in org.sonar.php.tree that return TreeModifier and TypeMethodDescriptionstatic Tree
TreeUtils.findAncestorWithKind
(Tree tree, Collection<Tree.Kind> kinds) static Tree
TreeUtils.findAncestorWithKind
(Tree tree, Tree.Kind... kinds) Methods in org.sonar.php.tree that return types with arguments of type TreeModifier and TypeMethodDescriptionTreeUtils.descendants
(Tree root) TreeUtils.firstDescendant
(Tree root, Predicate<Tree> predicate) Methods in org.sonar.php.tree with parameters of type TreeModifier and TypeMethodDescriptionTreeUtils.descendants
(Tree root) TreeUtils.descendants
(Tree root, Class<T> clazz) static Tree
TreeUtils.findAncestorWithKind
(Tree tree, Collection<Tree.Kind> kinds) static Tree
TreeUtils.findAncestorWithKind
(Tree tree, Tree.Kind... kinds) TreeUtils.firstDescendant
(Tree root, Class<T> clazz) TreeUtils.firstDescendant
(Tree root, Predicate<Tree> predicate) static boolean
TreeUtils.hasAnnotation
(Tree declaration, String annotation) static boolean
TreeUtils.isDescendant
(Tree tree, Tree potentialParent) Method parameters in org.sonar.php.tree with type arguments of type Tree -
Uses of Tree in org.sonar.php.tree.impl
Classes in org.sonar.php.tree.impl with type parameters of type TreeClasses in org.sonar.php.tree.impl that implement TreeModifier and TypeClassDescriptionclass
class
class
class
Methods in org.sonar.php.tree.impl with type parameters of type TreeModifier and TypeMethodDescriptionstatic <T extends Tree>
SeparatedListImpl<T>SeparatedListImpl.empty()
Methods in org.sonar.php.tree.impl that return TreeMethods in org.sonar.php.tree.impl that return types with arguments of type TreeModifier and TypeMethodDescriptionCompilationUnitTreeImpl.childrenIterator()
PHPTree.childrenIterator()
Creates iterator for children of this node.ScriptTreeImpl.childrenIterator()
VariableIdentifierTreeImpl.childrenIterator()
SeparatedListImpl.elementsAndSeparators()
SeparatedListImpl.elementsAndSeparators
(Function<T, ? extends Tree> elementTransformer) Methods in org.sonar.php.tree.impl with parameters of type TreeMethod parameters in org.sonar.php.tree.impl with type arguments of type Tree -
Uses of Tree in org.sonar.php.tree.impl.declaration
Classes in org.sonar.php.tree.impl.declaration that implement TreeModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
static class
static class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Methods in org.sonar.php.tree.impl.declaration that return TreeMethods in org.sonar.php.tree.impl.declaration that return types with arguments of type TreeModifier and TypeMethodDescriptionAttributeGroupTreeImpl.childrenIterator()
AttributeTreeImpl.childrenIterator()
BuiltInTypeTreeImpl.childrenIterator()
CallArgumentTreeImpl.childrenIterator()
ClassDeclarationTreeImpl.childrenIterator()
ClassPropertyDeclarationTreeImpl.childrenIterator()
CombinedTypeTreeImpl.childrenIterator()
ConstantDeclarationTreeImpl.childrenIterator()
EnumDeclarationTreeImpl.childrenIterator()
FunctionDeclarationTreeImpl.childrenIterator()
MethodDeclarationTreeImpl.childrenIterator()
NamespaceNameTreeImpl.childrenIterator()
ParameterListTreeImpl.childrenIterator()
ParameterTreeImpl.childrenIterator()
ReturnTypeClauseTreeImpl.childrenIterator()
TraitAliasTreeImpl.childrenIterator()
TraitMethodReferenceTreeImpl.childrenIterator()
TraitPrecedenceTreeImpl.childrenIterator()
TypeTreeImpl.childrenIterator()
UseClauseTreeImpl.childrenIterator()
UseTraitDeclarationTreeImpl.childrenIterator()
Constructors in org.sonar.php.tree.impl.declaration with parameters of type TreeModifierConstructorDescriptionMethodDeclarationTreeImpl
(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
Classes in org.sonar.php.tree.impl.expression that implement TreeModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
static class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Methods in org.sonar.php.tree.impl.expression that return TreeModifier and TypeMethodDescriptionMemberAccessTreeImpl.member()
ArrayAssignmentPatternElementTreeImpl.variable()
Methods in org.sonar.php.tree.impl.expression that return types with arguments of type TreeModifier and TypeMethodDescriptionAnonymousClassTreeImpl.childrenIterator()
ArrayAccessTreeImpl.childrenIterator()
ArrayAssignmentPatternElementTreeImpl.childrenIterator()
ArrayAssignmentPatternTreeImpl.childrenIterator()
ArrayInitializerBracketTreeImpl.childrenIterator()
ArrayInitializerFunctionTreeImpl.childrenIterator()
ArrayPairTreeImpl.childrenIterator()
ArrowFunctionExpressionTreeImpl.childrenIterator()
AssignmentByReferenceTreeImpl.childrenIterator()
AssignmentExpressionTreeImpl.childrenIterator()
BinaryExpressionTreeImpl.childrenIterator()
CallableConvertTreeImpl.childrenIterator()
CastExpressionTreeImpl.childrenIterator()
CompoundVariableTreeImpl.childrenIterator()
ComputedVariableTreeImpl.childrenIterator()
ConditionalExpressionTreeImpl.childrenIterator()
ExecutionOperatorTreeImpl.childrenIterator()
ExpandableStringCharactersTreeImpl.childrenIterator()
ExpandableStringLiteralTreeImpl.childrenIterator()
FunctionCallTreeImpl.childrenIterator()
FunctionExpressionTreeImpl.childrenIterator()
HeredocStringLiteralTreeImpl.childrenIterator()
HeredocStringLiteralTreeImpl.HeredocBody.childrenIterator()
LexicalVariablesTreeImpl.childrenIterator()
ListExpressionTreeImpl.childrenIterator()
LiteralTreeImpl.childrenIterator()
MatchConditionClauseTreeImpl.childrenIterator()
MatchDefaultClauseTreeImpl.childrenIterator()
MatchExpressionTreeImpl.childrenIterator()
MemberAccessTreeImpl.childrenIterator()
NameIdentifierTreeImpl.childrenIterator()
NewExpressionTreeImpl.childrenIterator()
ParenthesizedExpressionTreeImpl.childrenIterator()
PostfixExpressionTreeImpl.childrenIterator()
PrefixedCastExpressionTreeImpl.childrenIterator()
PrefixExpressionTreeImpl.childrenIterator()
ReferenceVariableTreeImpl.childrenIterator()
SpreadArgumentTreeImpl.childrenIterator()
ThrowExpressionTreeImpl.childrenIterator()
VariableVariableTreeImpl.childrenIterator()
YieldExpressionTreeImpl.childrenIterator()
ArrayAssignmentPatternElements.elementsAndSeparators()
Constructors in org.sonar.php.tree.impl.expression with parameters of type TreeModifierConstructorDescriptionArrayAssignmentPatternElementTreeImpl
(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 TreeMethods in org.sonar.php.tree.impl.lexical that return types with arguments of type TreeModifier and TypeMethodDescriptionInternalSyntaxToken.childrenIterator()
InternalSyntaxTrivia.childrenIterator()
-
Uses of Tree in org.sonar.php.tree.impl.statement
Classes in org.sonar.php.tree.impl.statement that implement TreeModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Methods in org.sonar.php.tree.impl.statement that return types with arguments of type TreeModifier and TypeMethodDescriptionBlockTreeImpl.childrenIterator()
BreakStatementTreeImpl.childrenIterator()
CaseClauseTreeImpl.childrenIterator()
CatchBlockTreeImpl.childrenIterator()
ContinueStatementTreeImpl.childrenIterator()
DeclareStatementTreeImpl.childrenIterator()
DefaultClauseTreeImpl.childrenIterator()
DoWhileStatementTreeImpl.childrenIterator()
EchoTagStatementTreeImpl.childrenIterator()
ElseClauseTreeImpl.childrenIterator()
ElseifClauseTreeImpl.childrenIterator()
EmptyStatementImpl.childrenIterator()
EnumCaseTreeImpl.childrenIterator()
ExpressionListStatementTreeImpl.childrenIterator()
ExpressionStatementTreeImpl.childrenIterator()
ForEachStatementTreeImpl.childrenIterator()
ForStatementTreeImpl.childrenIterator()
GlobalStatementTreeImpl.childrenIterator()
GotoStatementTreeImpl.childrenIterator()
IfStatementTreeImpl.childrenIterator()
InlineHTMLTreeImpl.childrenIterator()
LabelTreeImpl.childrenIterator()
NamespaceStatementTreeImpl.childrenIterator()
ReturnStatementTreeImpl.childrenIterator()
StaticStatementTreeImpl.childrenIterator()
SwitchStatementTreeImpl.childrenIterator()
ThrowStatementTreeImpl.childrenIterator()
TryStatementTreeImpl.childrenIterator()
UnsetVariableStatementTreeImpl.childrenIterator()
UseStatementTreeImpl.childrenIterator()
VariableDeclarationTreeImpl.childrenIterator()
WhileStatementTreeImpl.childrenIterator()
-
Uses of Tree in org.sonar.php.tree.symbols
Methods in org.sonar.php.tree.symbols that return TreeMethods in org.sonar.php.tree.symbols with parameters of type TreeConstructors in org.sonar.php.tree.symbols with parameters of type Tree -
Uses of Tree in org.sonar.php.tree.visitors
Methods in org.sonar.php.tree.visitors with parameters of type Tree -
Uses of Tree in org.sonar.php.utils
Methods in org.sonar.php.utils with parameters of type Tree -
Uses of Tree in org.sonar.plugins.php.api.cfg
Methods in org.sonar.plugins.php.api.cfg that return TreeModifier and TypeMethodDescriptionCfgBranchingBlock.branchingTree()
Syntax tree causing branching: e.g.Methods in org.sonar.plugins.php.api.cfg that return types with arguments of type TreeMethods in org.sonar.plugins.php.api.cfg with parameters of type TreeModifier and TypeMethodDescriptionstatic ControlFlowGraph
ControlFlowGraph.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 -
Uses of Tree in org.sonar.plugins.php.api.tree
Classes in org.sonar.plugins.php.api.tree with type parameters of type TreeSubinterfaces of Tree in org.sonar.plugins.php.api.treeModifier and TypeInterfaceDescriptioninterface
Compilation Unitinterface
PHP ScriptMethods in org.sonar.plugins.php.api.tree that return TreeMethods in org.sonar.plugins.php.api.tree that return types with arguments of type TreeModifier and TypeMethodDescriptionSeparatedList.elementsAndSeparators()
SeparatedList.elementsAndSeparators
(Function<T, ? extends Tree> elementTransformer) Tree.Kind.getAssociatedInterface()
Method parameters in org.sonar.plugins.php.api.tree with type arguments of type Tree -
Uses of Tree in org.sonar.plugins.php.api.tree.declaration
Subinterfaces of Tree in org.sonar.plugins.php.api.tree.declarationModifier and TypeInterfaceDescriptioninterface
interface
interface
interface
interface
interface
This interface represents class statement, which can be:Method declaration
Class variable declaration
Trait use statement
Enum case for enum declarations
interface
Class Propertiesinterface
Common interface forClassDeclarationTree
andAnonymousClassTree
interface
Constants declarationinterface
Either aTypeTree
or aUnionTypeTree
interface
interface
interface
Common interface for all kinds of function.interface
interface
Class Methodsinterface
Namespace 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.interface
Function parameters Listinterface
interface
ReturnTypeClauseTree is an optional element of function declarationinterface
This 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_TYPE
seeBuiltInTypeTree
Tree.Kind.NAMESPACE_NAME
for custom class or interface typeinterface
This interface represents type clause (appearing in function return type or parameter type), possibly prefixed with a?
which stands for "optional".interface
interface
Variable DeclarationMethods in org.sonar.plugins.php.api.tree.declaration that return Tree -
Uses of Tree in org.sonar.plugins.php.api.tree.expression
Subinterfaces of Tree in org.sonar.plugins.php.api.tree.expressionModifier and TypeInterfaceDescriptioninterface
interface
Array Accessinterface
interface
interface
interface
Array Initializer Bracketinterface
Array Initializer Functioninterface
interface
Array Pairinterface
interface
interface
BinaryExpressionTree.leftOperand()
*
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
/
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
%
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
+
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
-
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
<<
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
>>
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
<
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
>
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
<=
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
>=
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
==
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
===
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
!=
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
!==
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
<>
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
&
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
^
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
|
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
&&
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
and
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
||
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
or
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
instanceof
BinaryExpressionTree.rightOperand()
BinaryExpressionTree.leftOperand()
.
BinaryExpressionTree.rightOperand()
interface
interface
interface
Curly variable syntaxinterface
Curly variable syntaxinterface
Conditional Expressioninterface
interface
Characters within expandable stringinterface
Expandable String, containing variable nameinterface
Parent interface for all the trees representing expressions (e.g.interface
interface
interface
interface
Common interface to represent all kinds of identifiers.interface
Lexical Variable: use construct that allows an anonymous function to inherit from parent scope variables.interface
interface
Literalinterface
Starting from PHP 8.0 Match expressioninterface
Starting from PHP 8.0 Condition match clause in match expression (seeMatchClauseTree
).interface
Default match clause in match expression (seeMatchClauseTree
).interface
Starting from PHP 8.0 Match expressioninterface
Object/Class Member Accessinterface
Identifierinterface
interface
Parenthesised Expressioninterface
interface
interface
interface
interface
UnaryExpressionTree.expression()
++
UnaryExpressionTree.expression()
--
@
UnaryExpressionTree.expression()
--
UnaryExpressionTree.expression()
++
UnaryExpressionTree.expression()
+
UnaryExpressionTree.expression()
-
UnaryExpressionTree.expression()
~
UnaryExpressionTree.expression()
!
UnaryExpressionTree.expression()
interface
interface
interface
interface
Methods in org.sonar.plugins.php.api.tree.expression that return Tree -
Uses of Tree in org.sonar.plugins.php.api.tree.lexical
Subinterfaces of Tree in org.sonar.plugins.php.api.tree.lexicalModifier and TypeInterfaceDescriptioninterface
Represents a token in the syntax tree.interface
Represents 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.statementModifier and TypeInterfaceDescriptioninterface
A BlockTree is a list of zero or moreBlockTree.statements()
between braces which can be used anywhere a single statement is allowed.interface
interface
Case clause in switch statement (seeSwitchStatementTree
).interface
Catch block of try statement (seeTryStatementTree
).interface
interface
interface
Default case clause in switch statement (seeSwitchStatementTree
).interface
interface
An EchoTagStatementTree is an AST node that wrap an expression list to represent the php tag: <?=EchoTagStatementTree.expressions()
?>interface
interface
interface
An empty statement is written as a single semicolon (;
).interface
interface
Deprecated.since 3.1.interface
Expression statement is used for processing expressions, e.g.interface
Represents foreach statement and alternative foreach statement syntax as well.interface
Represents for statement and alternative for statement syntax as well.interface
Global variable declarationinterface
interface
Represents if statement and alternative if statement syntax as well.interface
This interface presents HTML code embedded into php code.interface
Label which is used by goto statement.interface
Namespace definitioninterface
interface
Parent interface for all the trees representing statements (e.g.interface
Static variable declarationinterface
General interface for switch clauses.interface
interface
interface
interface
interface
interface
interface
interface
interface
Use namespaces declaration clauseinterface
Use namespaces declarationinterface
interface
Represents 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 TreeMethods in org.sonar.plugins.php.api.visitors with parameters of type TreeModifier and TypeMethodDescriptionvoid
To add secondary locations and cost usePreciseIssue.secondary(Tree, String)
andPreciseIssue.cost(double)
.To add secondary locations and cost usePreciseIssue.secondary(Tree, String)
andPreciseIssue.cost(double)
.protected void
void
void
Constructors in org.sonar.plugins.php.api.visitors with parameters of type TreeModifierConstructorDescriptionIssueLocation
(Tree tree, String message) IssueLocation
(Tree startTree, Tree endTree, String message)