org.sonar.plugins.java.api.tree
Interface ClassTree
- All Superinterfaces:
- StatementTree, Tree
@Beta
public interface ClassTree
- extends StatementTree
Class, enum, interface or annotation declaration.
JLS 8.1. Class declaration (Tree.Kind.CLASS):
modifiers() class simpleName() typeParameters() extends superClass() implements superInterfaces() {
members()
}
JLS 8.9. Enum declaration (Tree.Kind.ENUM):
modifiers() enum simpleName() typeParameters() implements superInterfaces() {
members()
}
JLS 9.1. Interface declaration (Tree.Kind.INTERFACE):
modifiers() interface simpleName() typeParameters() extends superInterfaces() {
members()
}
JLS 9.6. Annotation declaration (Tree.Kind.ANNOTATION_TYPE):
modifiers()@interface simpleName() {
members()
}
- Since:
- Java 1.3
| Nested classes/interfaces inherited from interface org.sonar.plugins.java.api.tree.Tree |
Tree.Kind |
| Methods inherited from interface org.sonar.plugins.java.api.tree.Tree |
accept, is |
simpleName
@Nullable
IdentifierTree simpleName()
typeParameters
List<Tree> typeParameters()
modifiers
ModifiersTree modifiers()
superClass
@Nullable
Tree superClass()
superInterfaces
List<Tree> superInterfaces()
members
List<Tree> members()
Copyright © 2012-2014 SonarSource. All Rights Reserved.