Package org.sonar.python.types
Class TypeShed
- java.lang.Object
-
- org.sonar.python.types.TypeShed
-
public class TypeShed extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Symbol>builtinSymbols()static 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 Collection<Symbol>stubFilesSymbols()Returns stub symbols to be used by SonarSecurity.static Map<String,Symbol>symbolsForModule(String moduleName)Returns map of exported symbols by name for a given modulestatic Set<Symbol>symbolsFromProtobufDescriptors(Set<Object> protobufDescriptors, String containerClassFqn, String moduleName)static SymbolsymbolWithFQN(String fullyQualifiedName)static SymbolsymbolWithFQN(String stdLibModuleName, String fullyQualifiedName)static ClassSymboltypeShedClass(String fullyQualifiedName)
-
-
-
Method Detail
-
typeShedClass
public static ClassSymbol typeShedClass(String fullyQualifiedName)
-
symbolsForModule
public static Map<String,Symbol> symbolsForModule(String moduleName)
Returns map of exported symbols by name for a given module
-
symbolWithFQN
@CheckForNull public static Symbol symbolWithFQN(String stdLibModuleName, String fullyQualifiedName)
-
symbolWithFQN
@CheckForNull public static Symbol symbolWithFQN(String fullyQualifiedName)
-
stubFilesSymbols
public static Collection<Symbol> stubFilesSymbols()
Returns stub symbols to be used by SonarSecurity. Ambiguous symbols that only contain class symbols are disambiguated with latest Python version.
-
normalizedFqn
public static String normalizedFqn(String fqn, String moduleName, String localName, @Nullable String containerClassFqn)
-
isValidForProjectPythonVersion
public static boolean isValidForProjectPythonVersion(List<String> validForPythonVersions)
-
symbolsFromProtobufDescriptors
public static Set<Symbol> symbolsFromProtobufDescriptors(Set<Object> protobufDescriptors, @Nullable String containerClassFqn, String moduleName)
-
classDescriptorWithFQN
@CheckForNull public static SymbolsProtos.ClassSymbol classDescriptorWithFQN(String fullyQualifiedName)
-
-