Uses of Interface
org.sonar.plugins.python.api.types.InferredType
Packages that use InferredType
Package
Description
-
Uses of InferredType in org.sonar.plugins.python.api.symbols
Methods in org.sonar.plugins.python.api.symbols that return InferredType -
Uses of InferredType in org.sonar.plugins.python.api.tree
Methods in org.sonar.plugins.python.api.tree that return InferredTypeModifier and TypeMethodDescriptiondefault InferredTypeReturnStatement.returnValueType()Infers the type of the returned value that would result from the execution of this return statement.default InferredTypeExpression.type() -
Uses of InferredType in org.sonar.plugins.python.api.types
Methods in org.sonar.plugins.python.api.types with parameters of type InferredTypeModifier and TypeMethodDescriptionbooleanInferredType.isCompatibleWith(InferredType other) booleanInferredType.isIdentityComparableWith(InferredType other) -
Uses of InferredType in org.sonar.python.semantic
Methods in org.sonar.python.semantic that return InferredTypeModifier and TypeMethodDescriptionFunctionSymbolImpl.declaredReturnType()FunctionSymbolImpl.ParameterImpl.declaredType()SymbolImpl.inferredType()Note that, for symbols that have been deserialized from protobuf, we compute their type lazily.Methods in org.sonar.python.semantic with parameters of type InferredTypeModifier and TypeMethodDescriptionvoidFunctionSymbolImpl.setDeclaredReturnType(InferredType declaredReturnType) voidFunctionSymbolImpl.ParameterImpl.setDeclaredType(InferredType type) voidSymbolImpl.setInferredType(InferredType inferredType) -
Uses of InferredType in org.sonar.python.tree
Methods in org.sonar.python.tree that return InferredTypeModifier and TypeMethodDescriptionBinaryExpressionImpl.type()CallExpressionImpl.type()ComprehensionExpressionImpl.type()ConditionalExpressionImpl.type()DictCompExpressionImpl.type()DictionaryLiteralImpl.type()ListLiteralImpl.type()NameImpl.type()NoneExpressionImpl.type()NumericLiteralImpl.type()ParenthesizedExpressionImpl.type()QualifiedExpressionImpl.type()SetLiteralImpl.type()SliceExpressionImpl.type()StringLiteralImpl.type()TupleImpl.type()UnaryExpressionImpl.type()Methods in org.sonar.python.tree with parameters of type InferredType -
Uses of InferredType in org.sonar.python.types
Classes in org.sonar.python.types that implement InferredTypeModifier and TypeClassDescriptionclassclassclassThis type is used for symbols that we assume to be class due to how they are used, so that type inference correctly tracks objects that were created from this.Fields in org.sonar.python.types declared as InferredTypeModifier and TypeFieldDescriptionstatic final InferredTypeInferredTypes.BOOLstatic final InferredTypeInferredTypes.COMPLEXstatic final InferredTypeInferredTypes.DECL_BOOLstatic final InferredTypeInferredTypes.DECL_COMPLEXstatic final InferredTypeInferredTypes.DECL_DICTstatic final InferredTypeInferredTypes.DECL_FLOATstatic final InferredTypeInferredTypes.DECL_INTstatic final InferredTypeInferredTypes.DECL_LISTstatic final InferredTypeInferredTypes.DECL_NONEstatic final InferredTypeInferredTypes.DECL_SETstatic final InferredTypeInferredTypes.DECL_STRstatic final InferredTypeInferredTypes.DECL_TUPLEstatic final InferredTypeInferredTypes.DECL_TYPEstatic final InferredTypeInferredTypes.DICTstatic final InferredTypeInferredTypes.FLOATstatic final InferredTypeInferredTypes.INTstatic final InferredTypeInferredTypes.LISTstatic final InferredTypeInferredTypes.NONEstatic final InferredTypeInferredTypes.SETstatic final InferredTypeInferredTypes.STRstatic final InferredTypeInferredTypes.TUPLEstatic final InferredTypeInferredTypes.TYPEMethods in org.sonar.python.types that return InferredTypeModifier and TypeMethodDescriptionstatic InferredTypeInferredTypes.anyOrUnknownClassType(Symbol symbol) Assumes unknown imported symbols whose name start with a capital letter to be classes.static InferredTypeInferredTypes.anyType()static InferredTypeDeclaredType.fromInferredType(InferredType inferredType) static InferredTypeInferredTypes.fromTypeAnnotation(TypeAnnotation typeAnnotation) static InferredTypeInferredTypes.fromTypeshedProtobuf(SymbolsProtos.Type type) static InferredTypeInferredTypes.fromTypeshedTypeAnnotation(TypeAnnotation typeAnnotation) static InferredTypeInferredTypes.or(InferredType t1, InferredType t2) static InferredTypeInferredTypes.runtimeType(Symbol typeClass) static InferredTypeInferredTypes.union(Stream<InferredType> types) Methods in org.sonar.python.types with parameters of type InferredTypeModifier and TypeMethodDescriptionstatic booleanInferredTypes.containsDeclaredType(InferredType type) static InferredTypeDeclaredType.fromInferredType(InferredType inferredType) static StringInferredTypes.fullyQualifiedTypeName(InferredType inferredType) static StringInferredTypes.getBuiltinCategory(InferredType inferredType) booleanDeclaredType.isCompatibleWith(InferredType other) booleanRuntimeType.isCompatibleWith(InferredType other) booleanUnknownClassType.isCompatibleWith(InferredType other) static booleanInferredTypes.isDeclaredTypeWithTypeClass(InferredType type, String typeName) booleanDeclaredType.isIdentityComparableWith(InferredType other) booleanRuntimeType.isIdentityComparableWith(InferredType other) booleanUnknownClassType.isIdentityComparableWith(InferredType other) static InferredTypeInferredTypes.or(InferredType t1, InferredType t2) static LocationInFileInferredTypes.typeClassLocation(InferredType inferredType) static StringInferredTypes.typeName(InferredType inferredType) static Collection<ClassSymbol>InferredTypes.typeSymbols(InferredType inferredType) Method parameters in org.sonar.python.types with type arguments of type InferredTypeModifier and TypeMethodDescriptionstatic InferredTypeInferredTypes.union(Stream<InferredType> types)