Uses of Interface
org.sonar.python.types.v2.PythonType
Packages that use PythonType
Package
Description
-
Uses of PythonType in org.sonar.plugins.python.api.tree
Methods in org.sonar.plugins.python.api.tree that return PythonTypeModifier and TypeMethodDescriptiondefault PythonTypeExpression.typeV2()default PythonTypeQualifiedExpression.typeV2() -
Uses of PythonType in org.sonar.python.semantic.v2
Classes in org.sonar.python.semantic.v2 with type parameters of type PythonTypeMethods in org.sonar.python.semantic.v2 that return PythonTypeModifier and TypeMethodDescriptionSymbolsModuleTypeProvider.convertModuleType(List<String> moduleFqn, ModuleType parent) BasicTypeTable.getBuiltinsModule()ProjectLevelTypeTable.getBuiltinsModule()TypeTable.getBuiltinsModule()BasicTypeTable.getModuleType(List<String> typeFqnParts) ProjectLevelTypeTable.getModuleType(List<String> typeFqnParts) This method returns a module type for a given FQN, or unknown if it cannot be resolved.TypeTable.getModuleType(List<String> typeFqnParts) LazyTypesContext.resolveLazyType(LazyType lazyType) Methods in org.sonar.python.semantic.v2 that return types with arguments of type PythonTypeModifier and TypeMethodDescriptionTypeInferenceV2.inferTypes(FileInput fileInput) ClassTypeBuilder.metaClasses()Methods in org.sonar.python.semantic.v2 with parameters of type PythonTypeModifier and TypeMethodDescriptionClassTypeBuilder.addSuperClass(PythonType type) FunctionTypeBuilder.withOwner(PythonType owner) FunctionTypeBuilder.withReturnType(PythonType returnType) ClassTypeBuilder.withSuperClasses(PythonType... types) Method parameters in org.sonar.python.semantic.v2 with type arguments of type PythonTypeModifier and TypeMethodDescriptionFunctionTypeBuilder.withAttributes(List<PythonType> attributes) ObjectTypeBuilder.withAttributes(List<PythonType> attributes) -
Uses of PythonType in org.sonar.python.semantic.v2.converter
Methods in org.sonar.python.semantic.v2.converter that return PythonTypeModifier and TypeMethodDescriptionAmbiguousDescriptorToPythonTypeConverter.convert(ConversionContext ctx, AmbiguousDescriptor from) AmbiguousDescriptorToPythonTypeConverter.convert(ConversionContext ctx, Descriptor from) AnyDescriptorToPythonTypeConverter.convert(String moduleFqn, Descriptor from, TypeOrigin typeOrigin) ClassDescriptorToPythonTypeConverter.convert(ConversionContext ctx, Descriptor from) ConversionContext.convert(Descriptor from) DescriptorToPythonTypeConverter.convert(ConversionContext ctx, Descriptor from) FunctionDescriptorToPythonTypeConverter.convert(ConversionContext ctx, Descriptor from) FunctionDescriptorToPythonTypeConverter.convert(ConversionContext ctx, FunctionDescriptor from) TypeAnnotationToPythonTypeConverter.convert(ConversionContext context, TypeAnnotationDescriptor type) UnknownDescriptorToPythonTypeConverter.convert(ConversionContext ctx, Descriptor from) VariableDescriptorToPythonTypeConverter.convert(ConversionContext ctx, Descriptor from) VariableDescriptorToPythonTypeConverter.convert(ConversionContext ctx, VariableDescriptor from) ConversionContext.currentParent()ConversionContext.pollParent()Methods in org.sonar.python.semantic.v2.converter with parameters of type PythonTypeMethod parameters in org.sonar.python.semantic.v2.converter with type arguments of type PythonTypeModifier and TypeMethodDescriptionPythonTypeToDescriptorConverter.convert(String moduleFqn, SymbolV2 symbol, Set<PythonType> types) -
Uses of PythonType in org.sonar.python.semantic.v2.types
Methods in org.sonar.python.semantic.v2.types that return PythonTypeModifier and TypeMethodDescriptionAssignment.rhsType()Definition.rhsType()LoopAssignment.rhsType()ParameterDefinition.rhsType()abstract PythonTypePropagation.rhsType()Methods in org.sonar.python.semantic.v2.types that return types with arguments of type PythonTypeModifier and TypeMethodDescriptionPropagationVisitor.processPropagations(Set<SymbolV2> trackedVars) TypeInferenceProgramState.typesBySymbol()Method parameters in org.sonar.python.semantic.v2.types with type arguments of type PythonTypeModifier and TypeMethodDescriptionvoidTypeInferenceProgramState.setTypes(SymbolV2 symbol, Set<PythonType> types) -
Uses of PythonType in org.sonar.python.tree
Methods in org.sonar.python.tree that return PythonTypeModifier and TypeMethodDescriptionBinaryExpressionImpl.typeV2()CallExpressionImpl.typeV2()ComprehensionExpressionImpl.typeV2()DictCompExpressionImpl.typeV2()DictionaryLiteralImpl.typeV2()ListLiteralImpl.typeV2()NameImpl.typeV2()NoneExpressionImpl.typeV2()NumericLiteralImpl.typeV2()SetLiteralImpl.typeV2()StringLiteralImpl.typeV2()SubscriptionExpressionImpl.typeV2()TupleImpl.typeV2()UnaryExpressionImpl.typeV2()Methods in org.sonar.python.tree with parameters of type PythonTypeModifier and TypeMethodDescriptionvoidComprehensionExpressionImpl.typeV2(PythonType type) voidDictCompExpressionImpl.typeV2(PythonType type) DictionaryLiteralImpl.typeV2(PythonType pythonType) voidListLiteralImpl.typeV2(PythonType type) NameImpl.typeV2(PythonType pythonType) voidNoneExpressionImpl.typeV2(PythonType pythonType) voidNumericLiteralImpl.typeV2(PythonType type) SetLiteralImpl.typeV2(PythonType pythonType) voidStringLiteralImpl.typeV2(PythonType type) SubscriptionExpressionImpl.typeV2(PythonType pythonType) TupleImpl.typeV2(PythonType pythonType) UnaryExpressionImpl.typeV2(PythonType type) -
Uses of PythonType in org.sonar.python.types.v2
Subinterfaces of PythonType in org.sonar.python.types.v2Classes in org.sonar.python.types.v2 that implement PythonTypeModifier and TypeClassDescriptionfinal classClassTypefinal classFunctionTypeclassclassfinal classfinal classclassfinal recordstatic final classstatic final recordFields in org.sonar.python.types.v2 declared as PythonTypeMethods in org.sonar.python.types.v2 that return PythonTypeModifier and TypeMethodDescriptionstatic PythonTypeTypeUtils.ensureWrappedObjectType(PythonType pythonType) static PythonTypeUnionType.or(Collection<PythonType> candidates) static PythonTypeUnionType.or(PythonType type1, PythonType type2) FunctionType.owner()LazyType.resolve()LazyUnionType.resolve()ResolvableType.resolve()FunctionType.returnType()LazyTypeWrapper.type()Member.type()Returns the value of thetyperecord component.ObjectType.type()SimpleTypeWrapper.type()TypeWrapper.type()LazyType.unwrappedType()ObjectType.unwrappedType()default PythonTypePythonType.unwrappedType()Methods in org.sonar.python.types.v2 that return types with arguments of type PythonTypeModifier and TypeMethodDescriptionClassType.attributes()FunctionType.attributes()ObjectType.attributes()UnionType.candidates()Returns the value of thecandidatesrecord component.ClassType.metaClasses()ClassType.resolveMember(String memberName) LazyType.resolveMember(String memberName) ModuleType.resolveMember(String memberName) ObjectType.resolveMember(String memberName) default Optional<PythonType>PythonType.resolveMember(String memberName) UnknownType.UnresolvedImportType.resolveMember(String memberName) ModuleType.resolveSubmodule(String submoduleName) Methods in org.sonar.python.types.v2 with parameters of type PythonTypeModifier and TypeMethodDescriptionTypeCheckBuilder.check(PythonType pythonType) static PythonTypeTypeUtils.ensureWrappedObjectType(PythonType pythonType) booleanClassType.isCompatibleWith(PythonType another) booleanLazyType.isCompatibleWith(PythonType another) booleanObjectType.isCompatibleWith(PythonType another) default booleanPythonType.isCompatibleWith(PythonType another) booleanUnionType.isCompatibleWith(PythonType another) default booleanUnknownType.isCompatibleWith(PythonType another) static TypeWrapperTypeWrapper.of(PythonType type) static PythonTypeUnionType.or(PythonType type1, PythonType type2) LazyType.resolve(PythonType type) voidLazyTypeWrapper.resolveLazyType(PythonType pythonType) Method parameters in org.sonar.python.types.v2 with type arguments of type PythonTypeModifier and TypeMethodDescriptionLazyType.addConsumer(Consumer<PythonType> consumer) static PythonTypeUnionType.or(Collection<PythonType> candidates) Constructors in org.sonar.python.types.v2 with parameters of type PythonTypeModifierConstructorDescriptionFunctionType(String name, String fullyQualifiedName, List<PythonType> attributes, List<ParameterV2> parameters, List<TypeWrapper> decorators, TypeWrapper returnType, TypeOrigin typeOrigin, boolean isAsynchronous, boolean hasDecorators, boolean isInstanceMethod, boolean hasVariadicParameter, PythonType owner, LocationInFile locationInFile) LazyTypeWrapper(PythonType type) Member(String name, PythonType type) Creates an instance of aMemberrecord class.ObjectType(PythonType type) ObjectType(PythonType type, List<PythonType> attributes, List<Member> members) ObjectType(PythonType type, List<PythonType> attributes, List<Member> members, TypeSource typeSource) ObjectType(PythonType type, TypeSource typeSource) SimpleTypeWrapper(PythonType type) Constructor parameters in org.sonar.python.types.v2 with type arguments of type PythonTypeModifierConstructorDescriptionClassType(String name, String fullyQualifiedName, Set<Member> members, List<PythonType> attributes, List<TypeWrapper> superClasses, List<PythonType> metaClasses, boolean hasDecorators, boolean isGeneric, LocationInFile locationInFile) FunctionType(String name, String fullyQualifiedName, List<PythonType> attributes, List<ParameterV2> parameters, List<TypeWrapper> decorators, TypeWrapper returnType, TypeOrigin typeOrigin, boolean isAsynchronous, boolean hasDecorators, boolean isInstanceMethod, boolean hasVariadicParameter, PythonType owner, LocationInFile locationInFile) LazyUnionType(Set<PythonType> candidates) ObjectType(PythonType type, List<PythonType> attributes, List<Member> members) ObjectType(PythonType type, List<PythonType> attributes, List<Member> members, TypeSource typeSource) ObjectType(TypeWrapper typeWrapper, List<PythonType> attributes, List<Member> members, TypeSource typeSource) UnionType(Set<PythonType> candidates) Creates an instance of aUnionTyperecord class.