Package org.sonar.python.types
Class TypeShed
java.lang.Object
org.sonar.python.types.TypeShed
-
Method Summary
Modifier and TypeMethodDescriptionstatic SymbolsProtos.ClassSymbolclassDescriptorWithFQN(String fullyQualifiedName) static booleanisValidForProjectPythonVersion(List<String> validForPythonVersions) static StringnormalizedFqn(String fqn) static StringnormalizedFqn(String fqn, String moduleName, String localName) static StringnormalizedFqn(String fqn, String moduleName, String localName, String containerClassFqn) static voidstatic voidsetProjectLevelSymbolTable(ProjectLevelSymbolTable projectLevelSymbolTable) static Collection<Symbol>Returns stub symbols to be used by SonarSecurity.symbolsForModule(String moduleName) Returns map of exported symbols by name for a given modulesymbolsFromProtobufDescriptors(Set<Object> protobufDescriptors, String containerClassFqn, String moduleName, boolean isFromClass) static SymbolsymbolWithFQN(String fullyQualifiedName) static SymbolsymbolWithFQN(String stdLibModuleName, String fullyQualifiedName) static ClassSymboltypeShedClass(String fullyQualifiedName)
-
Method Details
-
setProjectLevelSymbolTable
-
builtinSymbols
-
getLoadedTypeShedSymbols
-
typeShedClass
-
symbolsForModule
Returns map of exported symbols by name for a given module -
symbolWithFQN
-
symbolWithFQN
-
stubFilesSymbols
Returns stub symbols to be used by SonarSecurity. Ambiguous symbols that only contain class symbols are disambiguated with latest Python version. -
stubModules
-
normalizedFqn
-
normalizedFqn
-
normalizedFqn
-
isValidForProjectPythonVersion
-
symbolsFromProtobufDescriptors
-
classDescriptorWithFQN
@CheckForNull public static SymbolsProtos.ClassSymbol classDescriptorWithFQN(String fullyQualifiedName) -
resetBuiltinSymbols
public static void resetBuiltinSymbols()
-