Package org.sonar.python.api.tree
Interface FunctionDef
-
- All Superinterfaces:
FunctionLike,Statement,Tree
- All Known Implementing Classes:
FunctionDefImpl
public interface FunctionDef extends Statement, FunctionLike
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TokenasyncKeyword()StatementListbody()Tokencolon()List<Decorator>decorators()TokendefKeyword()Tokendocstring()TokenleftPar()Namename()TypeAnnotationreturnTypeAnnotation()-> returnTypeTokenrightPar()-
Methods inherited from interface org.sonar.python.api.tree.FunctionLike
isMethodDefinition, localVariables, parameters
-
Methods inherited from interface org.sonar.python.api.tree.Tree
accept, ancestors, astNode, children, descendants, descendants, firstToken, getKind, is, lastToken, parent
-
-
-
-
Method Detail
-
defKeyword
Token defKeyword()
-
asyncKeyword
@CheckForNull Token asyncKeyword()
-
name
Name name()
-
leftPar
Token leftPar()
-
rightPar
Token rightPar()
-
returnTypeAnnotation
@CheckForNull TypeAnnotation returnTypeAnnotation()
-> returnType
-
colon
Token colon()
-
body
StatementList body()
-
docstring
@CheckForNull Token docstring()
-
-