Interface FunctionDef
-
- All Superinterfaces:
FunctionLike,Statement,Tree
- All Known Implementing Classes:
FunctionDefImpl
public interface FunctionDef extends Statement, FunctionLike
See https://docs.python.org/3/reference/compound_stmts.html#function-definitionsdecorators()defname()(FunctionLike.parameters())returnTypeAnnotation():docstring()body()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TokenasyncKeyword()StatementListbody()Tokencolon()List<Decorator>decorators()TokendefKeyword()StringLiteraldocstring()TokenleftPar()Namename()TypeAnnotationreturnTypeAnnotation()-> returnTypeTokenrightPar()-
Methods inherited from interface org.sonar.plugins.python.api.tree.FunctionLike
isMethodDefinition, localVariables, parameters
-
-
-
-
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()
-
docstring
@CheckForNull StringLiteral docstring()
-
body
StatementList body()
-
-