Interface FieldDeclarationTree
-
- All Superinterfaces:
Tree
- All Known Implementing Classes:
FieldDeclarationTreeImpl
@Beta public interface FieldDeclarationTree extends Tree
Interface for class fields and static properties. This syntax is in proposal currently. See https://github.com/jeffmo/es-class-fields-and-static-properties
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<DecoratorTree>decorators()SyntaxTokenequalToken()ExpressionTreeinitializer()TreepropertyName()SyntaxTokensemicolonToken()SyntaxTokenstaticToken()FlowTypeAnnotationTreetypeAnnotation()-
Methods inherited from interface org.sonar.plugins.javascript.api.tree.Tree
accept, childrenStream, descendants, firstToken, is, isAncestorOf, lastToken, parent
-
-
-
-
Method Detail
-
decorators
List<DecoratorTree> decorators()
-
staticToken
@Nullable SyntaxToken staticToken()
-
propertyName
Tree propertyName()
-
typeAnnotation
@Nullable FlowTypeAnnotationTree typeAnnotation()
-
equalToken
@Nullable SyntaxToken equalToken()
-
initializer
@Nullable ExpressionTree initializer()
-
semicolonToken
@Nullable SyntaxToken semicolonToken()
-
-