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 classfinal classRepresents typing.Self or typing_extensions.Self type as defined in PEP 673.classstatic 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 PythonTypeSelfType.fromTypeWrapper(TypeWrapper typeWrapper) SelfType.innerType()static PythonTypeSelfType.of(PythonType type) Creates a SelfType wrapping the given type.static 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()SelfType.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) Attempts to resolve a PythonType's member It should return Optional.empty() when the member doesn't exist, and PythonType.UNKNOWN when the member may exist but can't be resolvedSelfType.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 TypeMethodDescriptionstatic ObjectType.BuilderObjectType.Builder.fromType(PythonType type) static ObjectTypeObjectType.fromType(PythonType type) FullyQualifiedNameHelper.getFullyQualifiedName(PythonType type) booleanClassType.isCompatibleWith(PythonType another) booleanObjectType.isCompatibleWith(PythonType another) default booleanPythonType.isCompatibleWith(PythonType another) booleanSelfType.isCompatibleWith(PythonType another) booleanUnionType.isCompatibleWith(PythonType another) default booleanUnknownType.isCompatibleWith(PythonType another) static PythonTypeSelfType.of(PythonType type) Creates a SelfType wrapping the given type.static TypeWrapperTypeWrapper.of(PythonType type) static PythonTypeUnionType.or(PythonType type1, PythonType type2, PythonType... types) ObjectType.Builder.withType(PythonType type) Method parameters in org.sonar.plugins.python.api.types.v2 with type arguments of type PythonTypeModifier and TypeMethodDescriptionstatic PythonTypeUnionType.or(Collection<PythonType> types) ObjectType.Builder.withAttributes(List<PythonType> attributes) Constructors 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 isClassMethod, boolean hasVariadicParameter, PythonType owner, LocationInFile locationInFile) Member(String name, PythonType type) Creates an instance of aMemberrecord class.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 isClassMethod, boolean hasVariadicParameter, PythonType owner, LocationInFile locationInFile) -
Uses of PythonType in org.sonar.python.semantic
Methods in org.sonar.python.semantic that return PythonType -
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) 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) -
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 TypeMethodDescriptionAwaitedTypeCalculator.calculate(PythonType awaitedType) static PythonTypeCallReturnTypeCalculator.computeCallExpressionType(CallExpression callExpr, TypePredicateContext typePredicateContext) Assignment.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 PythonTypeMethods in org.sonar.python.semantic.v2.types with parameters 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.semantic.v2.typetable
Methods in org.sonar.python.semantic.v2.typetable that return PythonTypeModifier and TypeMethodDescriptionBasicTypeTable.getBuiltinsModule()CachedTypeTable.getBuiltinsModule()ProjectLevelTypeTable.getBuiltinsModule()TypeTable.getBuiltinsModule()BasicTypeTable.getModuleType(List<String> typeFqnParts) CachedTypeTable.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) -
Uses of PythonType in org.sonar.python.tree
Methods in org.sonar.python.tree that return PythonTypeModifier and TypeMethodDescriptionstatic PythonTypeTreeUtils.inferSingleAssignedExpressionType(Expression expr) This method returns the type of an expression.AwaitExpressionImpl.typeV2()BinaryExpressionImpl.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 TypeMethodDescriptionvoidAwaitExpressionImpl.typeV2(PythonType type) BinaryExpressionImpl.typeV2(PythonType type) voidCallExpressionImpl.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()static Set<PythonType> TypeUtils.collectTypes(PythonType type) 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 Set<PythonType> TypeUtils.collectTypes(PythonType type) booleanTypeCheckMap.containsForType(PythonType type) 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 -
Uses of PythonType in org.sonar.python.types.v2.matchers
Methods in org.sonar.python.types.v2.matchers with parameters of type PythonTypeModifier and TypeMethodDescriptionAllTypePredicate.check(PythonType type, TypePredicateContext ctx) AnyTypePredicate.check(PythonType type, TypePredicateContext ctx) HasFQNPredicate.check(PythonType type, TypePredicateContext ctx) HasMemberPredicate.check(PythonType type, TypePredicateContext ctx) HasMemberSatisfyingPredicate.check(PythonType type, TypePredicateContext ctx) IsObjectSatisfyingPredicate.check(PythonType type, TypePredicateContext ctx) IsObjectSubtypeOfPredicate.check(PythonType type, TypePredicateContext ctx) IsSelfTypePredicate.check(PythonType type, TypePredicateContext ctx) IsTypePredicate.check(PythonType type, TypePredicateContext ctx) TypePredicate.check(PythonType type, TypePredicateContext ctx) TypeSourcePredicate.check(PythonType type, TypePredicateContext ctx) static TriBoolTypePredicateUtils.evaluate(TypePredicate predicate, PythonType type, TypePredicateContext ctx)