Interface FunctionDeclarationTree
-
- All Superinterfaces:
FunctionTree,StatementTree,Tree
- All Known Implementing Classes:
FunctionDeclarationTreeImpl
@Beta public interface FunctionDeclarationTree extends StatementTree, FunctionTree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockTreebody()SyntaxTokenfunctionKeyword()IdentifierTreename()ParameterListTreeparameterClause()FlowTypeAnnotationTreereturnType()SyntaxTokenstarToken()-
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
-
functionKeyword
SyntaxToken functionKeyword()
-
starToken
@Nullable SyntaxToken starToken()
-
name
IdentifierTree 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
-
-