Nested Class Summary
Nested Classes
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.symbols.Symbol
Symbol.Kind
Method Summary
All Methods Instance Methods Abstract Methods
Returns fully qualified name of the return type if any
Returns the known names of the decorators.
boolean
boolean
boolean
boolean
boolean
When true, it denotes a function symbol for a function stub.
Method Details
isStub
boolean isStub ()
When true, it denotes a function symbol for a function stub.
def fn(p1, p2): ...
isAsynchronous
boolean isAsynchronous ()
hasVariadicParameter
boolean hasVariadicParameter ()
isInstanceMethod
boolean isInstanceMethod ()
decorators
Returns the known names of the decorators.
It might not be a reliable way to infer the number of decorators
as they can take more complex expressions since Python 3.9
hasDecorators
boolean hasDecorators ()
annotatedReturnTypeName
@Beta
@CheckForNull
String annotatedReturnTypeName ()
Returns fully qualified name of the return type if any