Interface FunctionSymbol
-
- All Superinterfaces:
Symbol
- All Known Implementing Classes:
FunctionSymbolImpl
public interface FunctionSymbol extends Symbol
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFunctionSymbol.Parameter-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.symbols.Symbol
Symbol.Kind
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>decorators()LocationInFiledefinitionLocation()booleanhasDecorators()booleanhasVariadicParameter()booleanisInstanceMethod()booleanisStub()When true, it denotes a function symbol for a function stub.List<FunctionSymbol.Parameter>parameters()
-
-
-
Method Detail
-
parameters
List<FunctionSymbol.Parameter> parameters()
-
isStub
boolean isStub()
When true, it denotes a function symbol for a function stub.def fn(p1, p2): ...
-
hasVariadicParameter
boolean hasVariadicParameter()
-
isInstanceMethod
boolean isInstanceMethod()
-
hasDecorators
boolean hasDecorators()
-
definitionLocation
@CheckForNull LocationInFile definitionLocation()
-
-