Class ClassType
java.lang.Object
org.sonar.plugins.python.api.types.v2.ClassType
- All Implemented Interfaces:
PythonType
ClassType
-
Field Summary
Fields inherited from interface org.sonar.plugins.python.api.types.v2.PythonType
UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionClassType(String name, String fullyQualifiedName, Set<Member> members, List<PythonType> attributes, List<TypeWrapper> superClasses, List<PythonType> metaClasses, boolean hasDecorators, boolean isGeneric, LocationInFile locationInFile) -
Method Summary
Modifier and TypeMethodDescriptionbooleanareAttributesCompatible(ClassType other) booleanbooleanbooleaninheritedMember(String memberName) instancesHaveMember(String memberName) booleanisASubClassFrom(ClassType other) booleanisCompatibleWith(PythonType another) booleankey()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.plugins.python.api.types.v2.PythonType
typeSource, unwrappedType
-
Constructor Details
-
ClassType
public ClassType(String name, String fullyQualifiedName, Set<Member> members, List<PythonType> attributes, List<TypeWrapper> superClasses, List<PythonType> metaClasses, boolean hasDecorators, boolean isGeneric, @Nullable LocationInFile locationInFile) -
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
-
inheritedMember
-
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
-
fullyQualifiedName
-
members
-
attributes
-
superClasses
-
metaClasses
-
hasDecorators
public boolean hasDecorators() -
isGeneric
public boolean isGeneric()
-