Package org.sonar.plugins.java.api.tree
Interface ClassTree
-
- All Superinterfaces:
StatementTree
,Tree
- All Known Implementing Classes:
ClassTreeImpl
@Beta public interface ClassTree extends StatementTree
Class, enum, interface or annotation declaration.JLS 8.1. Class declaration (
Tree.Kind.CLASS
):modifiers()
classsimpleName()
typeParameters()
extendssuperClass()
implementssuperInterfaces()
{members()
}Tree.Kind.ENUM
):modifiers()
enumsimpleName()
typeParameters()
implementssuperInterfaces()
{members()
}Tree.Kind.INTERFACE
):modifiers()
interfacesimpleName()
typeParameters()
extendssuperInterfaces()
{members()
}Tree.Kind.ANNOTATION_TYPE
):modifiers()
@
interfacesimpleName()
{members()
}- Since:
- Java 1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyntaxToken
closeBraceToken()
SyntaxToken
declarationKeyword()
List<Tree>
members()
ModifiersTree
modifiers()
SyntaxToken
openBraceToken()
IdentifierTree
simpleName()
TypeTree
superClass()
ListTree<TypeTree>
superInterfaces()
Symbol.TypeSymbol
symbol()
TypeParameters
typeParameters()
-
-
-
Method Detail
-
declarationKeyword
@Nullable SyntaxToken declarationKeyword()
-
simpleName
@Nullable IdentifierTree simpleName()
-
typeParameters
TypeParameters typeParameters()
-
modifiers
ModifiersTree modifiers()
-
openBraceToken
SyntaxToken openBraceToken()
-
closeBraceToken
SyntaxToken closeBraceToken()
-
symbol
Symbol.TypeSymbol symbol()
-
-