Package org.sonar.python.api.tree
Interface PyFunctionDefTree
-
- All Superinterfaces:
PyStatementTree,Tree
- All Known Implementing Classes:
PyFunctionDefTreeImpl
public interface PyFunctionDefTree extends PyStatementTree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.sonar.sslr.api.TokenasyncKeyword()PyStatementListTreebody()com.sonar.sslr.api.Tokencolon()List<PyDecoratorTree>decorators()com.sonar.sslr.api.TokendefKeyword()com.sonar.sslr.api.Tokendocstring()booleanisMethodDefinition()com.sonar.sslr.api.TokenleftPar()PyNameTreename()PyParameterListTreeparameters()PyTypeAnnotationTreereturnTypeAnnotation()-> returnTypecom.sonar.sslr.api.TokenrightPar()
-
-
-
Method Detail
-
decorators
List<PyDecoratorTree> decorators()
-
defKeyword
com.sonar.sslr.api.Token defKeyword()
-
asyncKeyword
@CheckForNull com.sonar.sslr.api.Token asyncKeyword()
-
name
PyNameTree name()
-
leftPar
com.sonar.sslr.api.Token leftPar()
-
parameters
@CheckForNull PyParameterListTree parameters()
-
rightPar
com.sonar.sslr.api.Token rightPar()
-
returnTypeAnnotation
@CheckForNull PyTypeAnnotationTree returnTypeAnnotation()
-> returnType
-
colon
com.sonar.sslr.api.Token colon()
-
body
PyStatementListTree body()
-
isMethodDefinition
boolean isMethodDefinition()
-
docstring
@CheckForNull com.sonar.sslr.api.Token docstring()
-
-