Interface MethodDeclarationTree
-
- All Superinterfaces:
FunctionTree,Tree
- All Known Implementing Classes:
MethodDeclarationTreeImpl
@Beta public interface MethodDeclarationTree extends FunctionTree
Common interface for all types Method Definitions (ES6).name()parameterClause()body()staticname()parameterClause()body()*name()parameterClause()body()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockTreebody()List<DecoratorTree>decorators()Treename()ParameterListTreeparameterClause()FlowTypeAnnotationTreereturnType()SyntaxTokenstarToken()SyntaxTokenstaticToken()-
Methods inherited from interface org.sonar.plugins.javascript.api.tree.declaration.FunctionTree
asyncToken, genericParameterClause, parameterList, scope
-
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()
-
starToken
@Nullable SyntaxToken starToken()
-
name
Tree name()
- Specified by:
namein interfaceFunctionTree
-
parameterClause
ParameterListTree parameterClause()
- Specified by:
parameterClausein interfaceFunctionTree
-
returnType
@Nullable FlowTypeAnnotationTree returnType()
- Specified by:
returnTypein interfaceFunctionTree
-
body
BlockTree body()
- Specified by:
bodyin interfaceFunctionTree
-
-