Package org.sonar.python.semantic
Class FunctionSymbolImpl
- java.lang.Object
-
- org.sonar.python.semantic.SymbolImpl
-
- org.sonar.python.semantic.FunctionSymbolImpl
-
- All Implemented Interfaces:
FunctionSymbol,Symbol
public class FunctionSymbolImpl extends SymbolImpl implements FunctionSymbol
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.symbols.FunctionSymbol
FunctionSymbol.Parameter
-
Nested classes/interfaces inherited from interface org.sonar.plugins.python.api.symbols.Symbol
Symbol.Kind
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationInFiledefinitionLocation()booleanhasDecorators()booleanhasVariadicParameter()booleanisInstanceMethod()List<FunctionSymbol.Parameter>parameters()-
Methods inherited from class org.sonar.python.semantic.SymbolImpl
fullyQualifiedName, kind, name, setKind, usages
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.plugins.python.api.symbols.Symbol
fullyQualifiedName, kind, name, usages
-
-
-
-
Method Detail
-
parameters
public List<FunctionSymbol.Parameter> parameters()
- Specified by:
parametersin interfaceFunctionSymbol
-
hasVariadicParameter
public boolean hasVariadicParameter()
- Specified by:
hasVariadicParameterin interfaceFunctionSymbol
-
isInstanceMethod
public boolean isInstanceMethod()
- Specified by:
isInstanceMethodin interfaceFunctionSymbol
-
hasDecorators
public boolean hasDecorators()
- Specified by:
hasDecoratorsin interfaceFunctionSymbol
-
definitionLocation
public LocationInFile definitionLocation()
- Specified by:
definitionLocationin interfaceFunctionSymbol
-
-