Package org.sonar.java.model
Class JavaTree
java.lang.Object
org.sonar.java.model.JavaTree
- All Implemented Interfaces:
Tree
- Direct Known Subclasses:
AbstractPatternTree
,AbstractTypedTree
,ArrayDimensionTreeImpl
,AssertStatementTreeImpl
,BlockTreeImpl
,BreakStatementTreeImpl
,CaseGroupTreeImpl
,CaseLabelTreeImpl
,CatchTreeImpl
,ClassTreeImpl
,ContinueStatementTreeImpl
,DoWhileStatementTreeImpl
,EmptyStatementTreeImpl
,ExpressionStatementTreeImpl
,ForEachStatementImpl
,ForStatementTreeImpl
,IfStatementTreeImpl
,InternalSyntaxToken
,InternalSyntaxTrivia
,JavaTree.CompilationUnitTreeImpl
,JavaTree.ImportTreeImpl
,JavaTree.PackageDeclarationTreeImpl
,LabeledStatementTreeImpl
,ListTreeImpl
,MethodTreeImpl
,ModuleDeclarationTreeImpl
,ModuleDirectiveTreeImpl
,ReturnStatementTreeImpl
,SynchronizedStatementTreeImpl
,ThrowStatementTreeImpl
,TryStatementTreeImpl
,TypeParameterTreeImpl
,VariableTreeImpl
,WhileStatementTreeImpl
,YieldStatementTreeImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
This interface is dedicated to mark TypeTrees which will requires completion of their annotations during parsing.static class
static class
static class
static class
static class
static class
static class
static class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
root
-
-
Constructor Details
-
JavaTree
public JavaTree()
-
-
Method Details
-
allTokens
-
firstToken
- Specified by:
firstToken
in interfaceTree
-
lastToken
-
getLine
public int getLine() -
is
-
parent
-
setParent
-
children
Creates iterable for children of this node. Note that iterable may containnull
elements.- Throws:
UnsupportedOperationException
- ifisLeaf()
returnstrue
-
getChildren
-
isLeaf
public boolean isLeaf()
-