Package org.sonar.php.tree.impl
Class PHPTree
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- All Implemented Interfaces:
Tree
- Direct Known Subclasses:
AnonymousClassTreeImpl
,ArrayAccessTreeImpl
,ArrayAssignmentPatternElementTreeImpl
,ArrayAssignmentPatternTreeImpl
,ArrayInitializerBracketTreeImpl
,ArrayInitializerFunctionTreeImpl
,ArrayPairTreeImpl
,ArrowFunctionExpressionTreeImpl
,AssignmentByReferenceTreeImpl
,AssignmentExpressionTreeImpl
,AttributeGroupTreeImpl
,AttributeTreeImpl
,BinaryExpressionTreeImpl
,BlockTreeImpl
,BreakStatementTreeImpl
,BuiltInTypeTreeImpl
,CallArgumentTreeImpl
,CaseClauseTreeImpl
,CastExpressionTreeImpl
,CatchBlockTreeImpl
,ClassDeclarationTreeImpl
,ClassPropertyDeclarationTreeImpl
,CompilationUnitTreeImpl
,CompoundVariableTreeImpl
,ComputedVariableTreeImpl
,ConditionalExpressionTreeImpl
,ConstantDeclarationTreeImpl
,ContinueStatementTreeImpl
,DeclareStatementTreeImpl
,DefaultClauseTreeImpl
,DoWhileStatementTreeImpl
,EchoTagStatementTreeImpl
,ElseClauseTreeImpl
,ElseifClauseTreeImpl
,EmptyStatementImpl
,ExecutionOperatorTreeImpl
,ExpandableStringCharactersTreeImpl
,ExpandableStringLiteralTreeImpl
,ExpressionListStatementTreeImpl
,ExpressionStatementTreeImpl
,ForEachStatementTreeImpl
,ForStatementTreeImpl
,FunctionCallTreeImpl
,FunctionDeclarationTreeImpl
,FunctionExpressionTreeImpl
,GlobalStatementTreeImpl
,GotoStatementTreeImpl
,HeredocStringLiteralTreeImpl
,HeredocStringLiteralTreeImpl.HeredocBody
,IfStatementTreeImpl
,InlineHTMLTreeImpl
,InternalSyntaxToken
,InternalSyntaxTrivia
,LabelTreeImpl
,LexicalVariablesTreeImpl
,ListExpressionTreeImpl
,LiteralTreeImpl
,MatchConditionClauseTreeImpl
,MatchDefaultClauseTreeImpl
,MatchExpressionTreeImpl
,MemberAccessTreeImpl
,MethodDeclarationTreeImpl
,NameIdentifierTreeImpl
,NamespaceNameTreeImpl
,NamespaceStatementTreeImpl
,NewExpressionTreeImpl
,ParameterListTreeImpl
,ParameterTreeImpl
,ParenthesizedExpressionTreeImpl
,PostfixExpressionTreeImpl
,PrefixedCastExpressionTreeImpl
,PrefixExpressionTreeImpl
,ReferenceVariableTreeImpl
,ReturnStatementTreeImpl
,ReturnTypeClauseTreeImpl
,ScriptTreeImpl
,SpreadArgumentTreeImpl
,StaticStatementTreeImpl
,SwitchStatementTreeImpl
,ThrowExpressionTreeImpl
,ThrowStatementTreeImpl
,TraitAliasTreeImpl
,TraitMethodReferenceTreeImpl
,TraitPrecedenceTreeImpl
,TryStatementTreeImpl
,TypeTreeImpl
,UnionTypeTreeImpl
,UnsetVariableStatementTreeImpl
,UseClauseTreeImpl
,UseStatementTreeImpl
,UseTraitDeclarationTreeImpl
,VariableDeclarationTreeImpl
,VariableIdentifierTreeImpl
,VariableVariableTreeImpl
,WhileStatementTreeImpl
,YieldExpressionTreeImpl
public abstract class PHPTree extends Object implements Tree
-
-
Constructor Summary
Constructors Constructor Description PHPTree()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.SyntaxToken
getFirstToken()
SyntaxToken
getLastToken()
int
getLine()
Tree
getParent()
boolean
is(Tree.Kind... kind)
boolean
isLeaf()
void
setParent(Tree parent)
String
toString()
-
-
-
Method Detail
-
setParent
public void setParent(Tree parent)
-
getLine
public int getLine()
-
childrenIterator
public abstract Iterator<Tree> childrenIterator()
Creates iterator for children of this node. Note that iterator may containnull
elements.- Throws:
UnsupportedOperationException
- ifisLeaf()
returnstrue
-
isLeaf
public boolean isLeaf()
-
getLastToken
public SyntaxToken getLastToken()
-
getFirstToken
public SyntaxToken getFirstToken()
-
-