Package org.sonar.python.types
Class InferredTypes
- java.lang.Object
-
- org.sonar.python.types.InferredTypes
-
public class InferredTypes extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static InferredTypeBOOLstatic InferredTypeCOMPLEXstatic InferredTypeDICTstatic InferredTypeFLOATstatic InferredTypeINTstatic InferredTypeLISTstatic InferredTypeNONEstatic InferredTypeSETstatic InferredTypeSTRstatic InferredTypeTUPLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InferredTypeanyType()static InferredTypedeclaredType(TypeAnnotation typeAnnotation)static InferredTypeor(InferredType t1, InferredType t2)static InferredTyperuntimeType(Symbol typeClass)static InferredTypeunion(Stream<InferredType> types)
-
-
-
Field Detail
-
INT
public static final InferredType INT
-
FLOAT
public static final InferredType FLOAT
-
COMPLEX
public static final InferredType COMPLEX
-
STR
public static final InferredType STR
-
SET
public static final InferredType SET
-
DICT
public static final InferredType DICT
-
LIST
public static final InferredType LIST
-
TUPLE
public static final InferredType TUPLE
-
NONE
public static final InferredType NONE
-
BOOL
public static final InferredType BOOL
-
-
Method Detail
-
anyType
public static InferredType anyType()
-
runtimeType
public static InferredType runtimeType(@Nullable Symbol typeClass)
-
or
public static InferredType or(InferredType t1, InferredType t2)
-
union
public static InferredType union(Stream<InferredType> types)
-
declaredType
public static InferredType declaredType(TypeAnnotation typeAnnotation)
-
-