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) SymbolsModuleTypeProvider.convertProtobufType(SymbolsProtos.Type type) LazyTypesContext.resolveLazyType(LazyType lazyType) Methods in org.sonar.python.semantic.v2 that return types with arguments of type PythonTypeMethods in org.sonar.python.semantic.v2 with parameters of type PythonTypeModifier and TypeMethodDescriptionFunctionTypeBuilder.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.types
Methods in org.sonar.python.semantic.v2.types that return PythonTypeModifier and TypeMethodDescriptionAssignment.rhsType()Definition.rhsType()LoopAssignment.rhsType()ParameterDefinition.rhsType()abstract PythonTypePropagation.rhsType()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()TupleImpl.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) TupleImpl.typeV2(PythonType pythonType) -
Uses of PythonType in org.sonar.python.types.v2
Classes in org.sonar.python.types.v2 that implement PythonTypeModifier and TypeClassDescriptionfinal classClassTypefinal classFunctionTypeclassfinal classfinal recordfinal recordfinal recordFields in org.sonar.python.types.v2 declared as PythonTypeMethods in org.sonar.python.types.v2 that return PythonTypeModifier and TypeMethodDescriptionParameterV2.declaredType()Returns the value of thedeclaredTyperecord component.static PythonTypeUnionType.or(Collection<PythonType> candidates) static PythonTypeUnionType.or(PythonType type1, PythonType type2) FunctionType.owner()LazyType.resolve()FunctionType.returnType()Member.type()Returns the value of thetyperecord component.ObjectType.type()Returns the value of thetyperecord component.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()Returns the value of theattributesrecord component.UnionType.candidates()Returns the value of thecandidatesrecord component.ModuleType.members()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) ClassType.superClasses()Methods in org.sonar.python.types.v2 with parameters of type PythonTypeModifier and TypeMethodDescriptionTypeCheckBuilder.check(PythonType pythonType) booleanClassType.isCompatibleWith(PythonType another) booleanLazyType.isCompatibleWith(PythonType another) booleanObjectType.isCompatibleWith(PythonType another) default booleanPythonType.isCompatibleWith(PythonType another) booleanUnionType.isCompatibleWith(PythonType another) booleanUnknownType.isCompatibleWith(PythonType another) static PythonTypeUnionType.or(PythonType type1, PythonType type2) LazyType.resolve(PythonType type) voidFunctionType.resolveLazyReturnType(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, List<PythonType> attributes, List<ParameterV2> parameters, PythonType 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) Creates an instance of aObjectTyperecord class.ObjectType(PythonType type, TypeSource typeSource) ParameterV2(String name, PythonType declaredType, boolean hasDefaultValue, boolean isKeywordOnly, boolean isPositionalOnly, boolean isKeywordVariadic, boolean isPositionalVariadic, LocationInFile location) Creates an instance of aParameterV2record class.Constructor parameters in org.sonar.python.types.v2 with type arguments of type PythonTypeModifierConstructorDescriptionClassType(String name, Set<Member> members, List<PythonType> attributes, List<PythonType> superClasses, List<PythonType> metaClasses, boolean hasDecorators, LocationInFile locationInFile) FunctionType(String name, List<PythonType> attributes, List<ParameterV2> parameters, PythonType returnType, TypeOrigin typeOrigin, boolean isAsynchronous, boolean hasDecorators, boolean isInstanceMethod, boolean hasVariadicParameter, PythonType owner, LocationInFile locationInFile) ModuleType(String name, ModuleType parent, Map<String, PythonType> members) ObjectType(PythonType type, List<PythonType> attributes, List<Member> members) ObjectType(PythonType type, List<PythonType> attributes, List<Member> members, TypeSource typeSource) Creates an instance of aObjectTyperecord class.UnionType(Set<PythonType> candidates) Creates an instance of aUnionTyperecord class.