Class UnionType
java.lang.Object
org.sonar.plugins.python.api.types.v2.UnionType
- All Implemented Interfaces:
PythonType
-
Field Summary
Fields inherited from interface org.sonar.plugins.python.api.types.v2.PythonType
UNKNOWN -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()For UnionType, hasMember will return true if all alternatives have the member It will return false if all alternatives DON'T have the member It will return unknown in all other casesbooleanisCompatibleWith(PythonType another) static PythonTypeor(Collection<PythonType> types) static PythonTypeor(PythonType type1, PythonType type2, PythonType... types) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.sonar.plugins.python.api.types.v2.PythonType
definitionLocation, instanceDisplayName, key, name, resolveMember, unwrappedType
-
Method Details
-
candidates
-
displayName
- Specified by:
displayNamein interfacePythonType
-
hasMember
For UnionType, hasMember will return true if all alternatives have the member It will return false if all alternatives DON'T have the member It will return unknown in all other cases- Specified by:
hasMemberin interfacePythonType
-
isCompatibleWith
- Specified by:
isCompatibleWithin interfacePythonType
-
typeSource
- Specified by:
typeSourcein interfacePythonType
-
equals
-
hashCode
public int hashCode() -
toString
-
or
public static PythonType or(@Nullable PythonType type1, @Nullable PythonType type2, @Nullable PythonType... types) -
or
-