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 void
SyntaxHighlighterVisitor. 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 Tree
CognitiveComplexityVisitor.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 int
ComplexityVisitor. complexity(Tree tree)
static List<Tree>
ComplexityVisitor. complexityNodesWithoutNestedFunctions(Tree tree)
static List<Tree>
ComplexityVisitor. complexityTrees(Tree tree)
static int
LineVisitor. linesOfCode(Tree tree)
void
CounterVisitor. visitNode(Tree tree)
void
MetricsVisitor. 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 Tree
PHPParser. parse(File file)
Tree
PHPParser. 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 ArrayAssignmentPatternElementTree
TreeFactory. arrayAssignmentPatternElement(com.sonar.sslr.api.typed.Optional<TreeFactory.Tuple<ExpressionTree,InternalSyntaxToken>> key, Tree variable)
MemberAccessTree
TreeFactory. classMemberAccess(InternalSyntaxToken token, Tree member)
ExpressionTree
TreeFactory. encapsulatedComplexVariable(InternalSyntaxToken openCurly, Tree lookahead, ExpressionTree expression, InternalSyntaxToken closeCurly)
ExpandableStringLiteralTree
TreeFactory. expandableStringLiteral(Tree spacing, InternalSyntaxToken openDoubleQuote, List<ExpressionTree> expressions, InternalSyntaxToken closeDoubleQuote)
MethodDeclarationTree
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 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 Tree
TreeUtils. 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 Tree
TreeUtils. 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 boolean
TreeUtils. 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 class
SeparatedListImpl<T extends Tree>
Classes in org.sonar.php.tree.impl that implement Tree Modifier and Type Class Description class
CompilationUnitTreeImpl
class
PHPTree
class
ScriptTreeImpl
class
VariableIdentifierTreeImpl
Methods 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 Tree
PHPTree. 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 void
PHPTree. 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 class
AttributeGroupTreeImpl
class
AttributeTreeImpl
class
BuiltInTypeTreeImpl
class
CallArgumentTreeImpl
class
ClassDeclarationTreeImpl
class
ClassNamespaceNameTreeImpl
class
ClassPropertyDeclarationTreeImpl
class
ConstantDeclarationTreeImpl
class
FunctionDeclarationTreeImpl
class
MethodDeclarationTreeImpl
class
NamespaceNameTreeImpl
class
ParameterListTreeImpl
class
ParameterTreeImpl
class
ReturnTypeClauseTreeImpl
class
TraitAliasTreeImpl
class
TraitMethodReferenceTreeImpl
class
TraitPrecedenceTreeImpl
class
TypeTreeImpl
class
UnionTypeTreeImpl
class
UseClauseTreeImpl
class
UseTraitDeclarationTreeImpl
Methods in org.sonar.php.tree.impl.declaration that return Tree Modifier and Type Method Description Tree
MethodDeclarationTreeImpl. 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 Tree
MemberAccessTreeImpl. member()
Tree
ArrayAssignmentPatternElementTreeImpl. 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 class
InternalSyntaxToken
class
InternalSyntaxTrivia
Methods 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 class
BlockTreeImpl
class
BreakStatementTreeImpl
class
CaseClauseTreeImpl
class
CatchBlockTreeImpl
class
ContinueStatementTreeImpl
class
DeclareStatementTreeImpl
class
DefaultClauseTreeImpl
class
DoWhileStatementTreeImpl
class
EchoTagStatementTreeImpl
class
ElseClauseTreeImpl
class
ElseifClauseTreeImpl
class
EmptyStatementImpl
class
ExpressionListStatementTreeImpl
class
ExpressionStatementTreeImpl
class
ForEachStatementTreeImpl
class
ForStatementTreeImpl
class
GlobalStatementTreeImpl
class
GotoStatementTreeImpl
class
IfStatementTreeImpl
class
InlineHTMLTreeImpl
class
LabelTreeImpl
class
NamespaceStatementTreeImpl
class
ReturnStatementTreeImpl
class
StaticStatementTreeImpl
class
SwitchStatementTreeImpl
class
ThrowStatementTreeImpl
class
TryStatementTreeImpl
class
UnsetVariableStatementTreeImpl
class
UseStatementTreeImpl
class
VariableDeclarationTreeImpl
class
WhileStatementTreeImpl
Methods 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 Tree
Scope. tree()
Methods in org.sonar.php.tree.symbols with parameters of type Tree Modifier and Type Method Description Scope
SymbolTableImpl. getScopeFor(Tree tree)
Symbol
SymbolTableImpl. 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 PreciseIssue
PHPCheckContext. newIssue(PHPCheck check, Tree tree, String message)
PreciseIssue
PHPCheckContext. newIssue(PHPCheck check, Tree startTree, Tree endTree, String message)
LegacyIssue
LegacyIssue. 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 String
SourceBuilder. build(Tree tree)
void
SourceBuilder. 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 Tree
CfgBranchingBlock. 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 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 Modifier and Type Method Description Scope
SymbolTable. getScopeFor(Tree tree)
Symbol
SymbolTable. 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 interface
SeparatedList<T extends Tree>
Subinterfaces of Tree in org.sonar.plugins.php.api.tree Modifier and Type Interface Description interface
CompilationUnitTree
Compilation Unitinterface
ScriptTree
PHP ScriptMethods in org.sonar.plugins.php.api.tree that return Tree Modifier and Type Method Description Tree
Tree. 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 interface
AttributeGroupTree
interface
AttributeTree
interface
BuiltInTypeTree
interface
CallArgumentTree
interface
ClassDeclarationTree
interface
ClassMemberTree
This interface represents class statement, which can be:Method declaration
Class variable declaration
Trait use statement
interface
ClassPropertyDeclarationTree
Class Propertiesinterface
ClassTree
Common interface forClassDeclarationTree
andAnonymousClassTree
interface
ConstantDeclarationTree
Constants declarationinterface
DeclaredTypeTree
Either aTypeTree
or aUnionTypeTree
interface
FunctionDeclarationTree
interface
FunctionTree
Common interface for all kinds of function.interface
MethodDeclarationTree
Class Methodsinterface
NamespaceNameTree
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
ParameterListTree
Function parameters Listinterface
ParameterTree
interface
ReturnTypeClauseTree
ReturnTypeClauseTree is an optional element of function declarationinterface
TypeNameTree
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
TypeTree
This interface represents type clause (appearing in function return type or parameter type), possibly prefixed with a?
which stands for "optional".interface
UnionTypeTree
interface
VariableDeclarationTree
Variable DeclarationMethods in org.sonar.plugins.php.api.tree.declaration that return Tree Modifier and Type Method Description Tree
FunctionTree. body()
Tree
MethodDeclarationTree. 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 Tree
MemberAccessTree. member()
Tree
ArrayAssignmentPatternElementTree. 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 interface
SyntaxToken
Represents a token in the syntax tree.interface
SyntaxTrivia
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.statement Modifier and Type Interface Description interface
BlockTree
A BlockTree is a list of zero or moreBlockTree.statements()
between braces which can be used anywhere a single statement is allowed.interface
BreakStatementTree
interface
CaseClauseTree
Case clause in switch statement (seeSwitchStatementTree
).interface
CatchBlockTree
Catch block of try statement (seeTryStatementTree
).interface
ContinueStatementTree
interface
DeclareStatementTree
interface
DefaultClauseTree
Default case clause in switch statement (seeSwitchStatementTree
).interface
DoWhileStatementTree
interface
EchoTagStatementTree
An EchoTagStatementTree is an AST node that wrap an expression list to represent the php tag: <?=EchoTagStatementTree.expressions()
?>interface
ElseClauseTree
interface
ElseifClauseTree
interface
EmptyStatementTree
An empty statement is written as a single semicolon (;
).interface
ExpressionListStatementTree
Deprecated.since 3.1.interface
ExpressionStatementTree
Expression statement is used for processing expressions, e.g.interface
ForEachStatementTree
Represents foreach statement and alternative foreach statement syntax as well.interface
ForStatementTree
Represents for statement and alternative for statement syntax as well.interface
GlobalStatementTree
Global variable declarationinterface
GotoStatementTree
interface
IfStatementTree
Represents if statement and alternative if statement syntax as well.interface
InlineHTMLTree
This interface presents HTML code embedded into php code.interface
LabelTree
Label which is used by goto statement.interface
NamespaceStatementTree
Namespace definitioninterface
ReturnStatementTree
interface
StatementTree
Parent interface for all the trees representing statements (e.g.interface
StaticStatementTree
Static variable declarationinterface
SwitchCaseClauseTree
General interface for switch clauses.interface
SwitchStatementTree
interface
ThrowStatementTree
interface
TraitAdaptationStatementTree
interface
TraitAliasTree
interface
TraitMethodReferenceTree
interface
TraitPrecedenceTree
interface
TryStatementTree
interface
UnsetVariableStatementTree
interface
UseClauseTree
Use namespaces declaration clauseinterface
UseStatementTree
Use namespaces declarationinterface
UseTraitDeclarationTree
interface
WhileStatementTree
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 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 void
PHPTreeSubscriber. leaveNode(Tree tree)
PreciseIssue
CheckContext. newIssue(PHPCheck check, Tree tree, String message)
To add secondary locations and cost usePreciseIssue.secondary(Tree, String)
andPreciseIssue.cost(double)
.PreciseIssue
CheckContext. newIssue(PHPCheck check, Tree startTree, Tree endTree, String message)
To add secondary locations and cost usePreciseIssue.secondary(Tree, String)
andPreciseIssue.cost(double)
.PreciseIssue
PHPCheck. newIssue(Tree tree, String message)
PreciseIssue
PHPSubscriptionCheck. newIssue(Tree tree, String message)
PreciseIssue
PHPVisitorCheck. newIssue(Tree tree, String message)
protected void
PHPVisitorCheck. scan(Tree tree)
void
PHPTreeSubscriber. scanTree(Tree tree)
PreciseIssue
PreciseIssue. secondary(Tree tree, String message)
PreciseIssue
PreciseIssue. secondary(Tree startTree, Tree endTree, String message)
Issue
Issue. tree(Tree tree)
void
PHPTreeSubscriber. 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)
-