Uses of Interface
org.sonar.plugins.python.api.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.plugins.python.api.types.v2
Subinterfaces of PythonType in org.sonar.plugins.python.api.types.v2Classes in org.sonar.plugins.python.api.types.v2 that implement PythonTypeModifier and TypeClassDescriptionfinal classClassTypefinal classFunctionTypefinal classfinal classclassstatic final classstatic final recordFields in org.sonar.plugins.python.api.types.v2 declared as PythonTypeMethods in org.sonar.plugins.python.api.types.v2 that return PythonTypeModifier and TypeMethodDescriptionstatic PythonTypeUnionType.or(Collection<PythonType> types) static PythonTypeUnionType.or(PythonType type1, PythonType type2, PythonType... types) FunctionType.owner()FunctionType.returnType()Member.type()Returns the value of thetyperecord component.ObjectType.type()TypeWrapper.type()ObjectType.unwrappedType()default PythonTypePythonType.unwrappedType()Methods in org.sonar.plugins.python.api.types.v2 that return types with arguments of type PythonTypeModifier and TypeMethodDescriptionClassType.attributes()FunctionType.attributes()ObjectType.attributes()UnionType.candidates()ClassType.inheritedMember(String memberName) ClassType.metaClasses()ClassType.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.plugins.python.api.types.v2 with parameters of type PythonTypeModifier and TypeMethodDescriptionbooleanClassType.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, PythonType... types) Method parameters in org.sonar.plugins.python.api.types.v2 with type arguments of type PythonTypeConstructors in org.sonar.plugins.python.api.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) 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) Constructor parameters in org.sonar.plugins.python.api.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) 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) -
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.inferTopLevelTypes(FileInput fileInput) TypeInferenceV2.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 TypeMethodDescriptionAliasDescriptorToPythonTypeConverter.convert(ConversionContext ctx, Descriptor from) AmbiguousDescriptorToPythonTypeConverter.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 PythonTypeMethod 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()ParenthesizedExpressionImpl.typeV2()SetLiteralImpl.typeV2()StringLiteralImpl.typeV2()SubscriptionExpressionImpl.typeV2()TupleImpl.typeV2()UnaryExpressionImpl.typeV2()Methods in org.sonar.python.tree with parameters of type PythonTypeModifier and TypeMethodDescriptionBinaryExpressionImpl.typeV2(PythonType type) voidComprehensionExpressionImpl.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
Classes in org.sonar.python.types.v2 that implement PythonTypeMethods in org.sonar.python.types.v2 that return PythonTypeModifier and TypeMethodDescriptionstatic PythonTypeTypeUtils.ensureWrappedObjectType(PythonType pythonType) static PythonTypeTypeUtils.map(PythonType type, UnaryOperator<PythonType> mapper) LazyType.resolve()LazyUnionType.resolve()ResolvableType.resolve()static PythonTypeTypeUtils.resolved(PythonType pythonType) LazyTypeWrapper.type()SimpleTypeWrapper.type()LazyType.unwrappedType()Methods in org.sonar.python.types.v2 that return types with arguments of type PythonTypeModifier and TypeMethodDescriptionprotected Set<PythonType>LazyUnionType.candidates()LazyType.resolveMember(String memberName) static Collector<PythonType,?, PythonType> TypeUtils.toUnionType()static Collector<PythonType,?, PythonType> TypeUtils.toUnionType()Methods in org.sonar.python.types.v2 with parameters of type PythonTypeModifier and TypeMethodDescriptionTypeCheckBuilder.check(PythonType pythonType) static PythonTypeTypeUtils.ensureWrappedObjectType(PythonType pythonType) TypeCheckMap.getForType(PythonType type) TypeCheckMap.getOptionalForType(PythonType type) booleanLazyType.isCompatibleWith(PythonType another) static PythonTypeTypeUtils.map(PythonType type, UnaryOperator<PythonType> mapper) LazyType.resolve(PythonType type) static PythonTypeTypeUtils.resolved(PythonType pythonType) 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 PythonTypeTypeUtils.map(PythonType type, UnaryOperator<PythonType> mapper) Constructors in org.sonar.python.types.v2 with parameters of type PythonTypeModifierConstructorDescriptionLazyTypeWrapper(PythonType type) SimpleTypeWrapper(PythonType type) Constructor parameters in org.sonar.python.types.v2 with type arguments of type PythonType