Package org.sonar.python.index
Class ClassDescriptor
- java.lang.Object
-
- org.sonar.python.index.ClassDescriptor
-
- All Implemented Interfaces:
Descriptor
public class ClassDescriptor extends Object implements Descriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClassDescriptor.ClassDescriptorBuilder-
Nested classes/interfaces inherited from interface org.sonar.python.index.Descriptor
Descriptor.Kind
-
-
Constructor Summary
Constructors Constructor Description ClassDescriptor(String name, String fullyQualifiedName, Collection<String> superClasses, Collection<Descriptor> members, boolean hasDecorators, LocationInFile definitionLocation, boolean hasSuperClassWithoutDescriptor, boolean hasMetaClass, String metaclassFQN, boolean supportsGenerics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationInFiledefinitionLocation()StringfullyQualifiedName()booleanhasDecorators()booleanhasMetaClass()booleanhasSuperClassWithoutDescriptor()Descriptor.Kindkind()Collection<Descriptor>members()StringmetaclassFQN()Stringname()Collection<String>superClasses()booleansupportsGenerics()
-
-
-
Constructor Detail
-
ClassDescriptor
public ClassDescriptor(String name, @Nullable String fullyQualifiedName, Collection<String> superClasses, Collection<Descriptor> members, boolean hasDecorators, @Nullable LocationInFile definitionLocation, boolean hasSuperClassWithoutDescriptor, boolean hasMetaClass, @Nullable String metaclassFQN, boolean supportsGenerics)
-
-
Method Detail
-
name
public String name()
- Specified by:
namein interfaceDescriptor
-
fullyQualifiedName
public String fullyQualifiedName()
- Specified by:
fullyQualifiedNamein interfaceDescriptor
-
kind
public Descriptor.Kind kind()
- Specified by:
kindin interfaceDescriptor
-
superClasses
public Collection<String> superClasses()
-
members
public Collection<Descriptor> members()
-
hasDecorators
public boolean hasDecorators()
-
hasSuperClassWithoutDescriptor
public boolean hasSuperClassWithoutDescriptor()
-
definitionLocation
public LocationInFile definitionLocation()
-
hasMetaClass
public boolean hasMetaClass()
-
metaclassFQN
public String metaclassFQN()
-
supportsGenerics
public boolean supportsGenerics()
-
-