Package org.sonar.python.types.v2
Class ClassType
java.lang.Object
org.sonar.python.types.v2.ClassType
- All Implemented Interfaces:
PythonType
ClassType
-
Field Summary
Fields inherited from interface org.sonar.python.types.v2.PythonType
UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionClassType(String name, Set<Member> members, List<PythonType> attributes, List<PythonType> superClasses, List<PythonType> metaClasses, LocationInFile locationInFile) ClassType(String name, LocationInFile locationInFile) -
Method Summary
Modifier and TypeMethodDescriptionbooleanareAttributesCompatible(ClassType other) booleanbooleaninstancesHaveMember(String memberName) booleanisASubClassFrom(ClassType other) booleanisCompatibleWith(PythonType another) key()members()name()resolveMember(String memberName) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.sonar.python.types.v2.PythonType
unwrappedType
-
Constructor Details
-
ClassType
public ClassType(String name, Set<Member> members, List<PythonType> attributes, List<PythonType> superClasses, List<PythonType> metaClasses, @Nullable LocationInFile locationInFile) -
ClassType
-
ClassType
-
-
Method Details
-
displayName
- Specified by:
displayNamein interfacePythonType
-
instanceDisplayName
- Specified by:
instanceDisplayNamein interfacePythonType
-
isCompatibleWith
- Specified by:
isCompatibleWithin interfacePythonType
-
isASubClassFrom
-
areAttributesCompatible
-
key
- Specified by:
keyin interfacePythonType
-
resolveMember
- Specified by:
resolveMemberin interfacePythonType
-
hasUnresolvedHierarchy
public boolean hasUnresolvedHierarchy() -
hasMember
- Specified by:
hasMemberin interfacePythonType
-
hasMetaClass
public boolean hasMetaClass() -
instancesHaveMember
-
definitionLocation
- Specified by:
definitionLocationin interfacePythonType
-
toString
-
name
- Specified by:
namein interfacePythonType
-
members
-
attributes
-
superClasses
-
metaClasses
-