Package org.sonar.plugins.java.api.tree
Interface Tree
-
- All Known Subinterfaces:
AnnotationTree
,Arguments
,ArrayAccessExpressionTree
,ArrayDimensionTree
,ArrayTypeTree
,AssertStatementTree
,AssignmentExpressionTree
,BinaryExpressionTree
,BlockTree
,BreakStatementTree
,CaseGroupTree
,CaseLabelTree
,CatchTree
,ClassTree
,CompilationUnitTree
,ConditionalExpressionTree
,ContinueStatementTree
,DoWhileStatementTree
,EmptyStatementTree
,EnumConstantTree
,ExportsDirectiveTree
,ExpressionStatementTree
,ExpressionTree
,ForEachStatement
,ForStatementTree
,IdentifierTree
,IfStatementTree
,ImportClauseTree
,ImportTree
,InstanceOfTree
,JavaTree.AnnotatedTypeTree
,LabeledStatementTree
,LambdaExpressionTree
,ListTree<T>
,LiteralTree
,MemberSelectExpressionTree
,MethodInvocationTree
,MethodReferenceTree
,MethodTree
,ModifierKeywordTree
,ModifiersTree
,ModifierTree
,ModuleDeclarationTree
,ModuleDirectiveTree
,ModuleNameTree
,NewArrayTree
,NewClassTree
,OpensDirectiveTree
,PackageDeclarationTree
,ParameterizedTypeTree
,ParenthesizedTree
,PrimitiveTypeTree
,ProvidesDirectiveTree
,RequiresDirectiveTree
,ReturnStatementTree
,StatementTree
,StaticInitializerTree
,SwitchStatementTree
,SynchronizedStatementTree
,SyntaxToken
,SyntaxTrivia
,ThrowStatementTree
,TryStatementTree
,TypeArguments
,TypeCastTree
,TypeParameters
,TypeParameterTree
,TypeTree
,UnaryExpressionTree
,UnionTypeTree
,UsesDirectiveTree
,VariableTree
,VarTypeTree
,WhileStatementTree
,WildcardTree
- All Known Implementing Classes:
AbstractTypedTree
,AnnotationTreeImpl
,ArgumentListTreeImpl
,ArrayAccessExpressionTreeImpl
,ArrayDimensionTreeImpl
,AssertStatementTreeImpl
,AssignmentExpressionTreeImpl
,BinaryExpressionTreeImpl
,BlockStatementListTreeImpl
,BlockTreeImpl
,BoundListTreeImpl
,BreakStatementTreeImpl
,CaseGroupTreeImpl
,CaseLabelTreeImpl
,CatchTreeImpl
,ClassTreeImpl
,ConditionalExpressionTreeImpl
,ContinueStatementTreeImpl
,DoWhileStatementTreeImpl
,EmptyStatementTreeImpl
,EnumConstantTreeImpl
,ExportsDirectiveTreeImpl
,ExpressionStatementTreeImpl
,ForEachStatementImpl
,FormalParametersListTreeImpl
,ForStatementTreeImpl
,IdentifierTreeImpl
,IfStatementTreeImpl
,InferedTypeTree
,InitializerListTreeImpl
,InstanceOfTreeImpl
,InternalPostfixUnaryExpression
,InternalPrefixUnaryExpression
,InternalSyntaxSpacing
,InternalSyntaxToken
,InternalSyntaxTrivia
,JavaTree
,JavaTree.ArrayTypeTreeImpl
,JavaTree.CompilationUnitTreeImpl
,JavaTree.ImportTreeImpl
,JavaTree.NotImplementedTreeImpl
,JavaTree.PackageDeclarationTreeImpl
,JavaTree.ParameterizedTypeTreeImpl
,JavaTree.PrimitiveTypeTreeImpl
,JavaTree.UnionTypeTreeImpl
,JavaTree.WildcardTreeImpl
,LabeledStatementTreeImpl
,LambdaExpressionTreeImpl
,LambdaParameterListTreeImpl
,ListTreeImpl
,LiteralTreeImpl
,MemberSelectExpressionTreeImpl
,MethodInvocationTreeImpl
,MethodReferenceTreeImpl
,MethodTreeImpl
,ModifierKeywordTreeImpl
,ModifiersTreeImpl
,ModuleDeclarationTreeImpl
,ModuleDirectiveTreeImpl
,ModuleNameListTreeImpl
,ModuleNameTreeImpl
,NewArrayTreeImpl
,NewClassTreeImpl
,OpensDirectiveTreeImpl
,ParenthesizedTreeImpl
,ProvidesDirectiveTreeImpl
,QualifiedIdentifierListTreeImpl
,RequiresDirectiveTreeImpl
,ResourceListTreeImpl
,ReturnStatementTreeImpl
,StatementExpressionListTreeImpl
,StaticInitializerTreeImpl
,SwitchStatementTreeImpl
,SynchronizedStatementTreeImpl
,ThrowStatementTreeImpl
,TryStatementTreeImpl
,TypeArgumentListTreeImpl
,TypeCastExpressionTreeImpl
,TypeParameterListTreeImpl
,TypeParameterTreeImpl
,TypeUnionListTreeImpl
,UsesDirectiveTreeImpl
,VariableDeclaratorListTreeImpl
,VariableTreeImpl
,VarTypeTreeImpl
,WhileStatementTreeImpl
@Beta public interface Tree
Common interface for all nodes in a syntax tree.WARNING: This interface and its sub-interfaces are subject to change as the Java™ language evolves.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Tree.Kind
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(TreeVisitor visitor)
SyntaxToken
firstToken()
boolean
is(Tree.Kind... kinds)
Tree.Kind
kind()
SyntaxToken
lastToken()
Tree
parent()
-
-
-
Method Detail
-
is
boolean is(Tree.Kind... kinds)
-
accept
void accept(TreeVisitor visitor)
-
firstToken
@Nullable SyntaxToken firstToken()
-
lastToken
@Nullable SyntaxToken lastToken()
-
kind
Tree.Kind kind()
-
-