Scanyp Type Model

The type object represents a class, a struct, an enum or a generic type.

Available functions

Name:     
To get the name of this type.
FullName:
 To get the full name of this type.
NbLinesOfComment:       
To get the number of lines of comment of the type
NbLinesOfCode:
 To get the number of lines of code of the type 
PercentageCoverage:
 To get the coverage percent for this type 
NbLinesOfCodeCovered:
  To get the number of covered lines of code. 
NbLinesOfCodeNotCovered:        
To get the number of not covered lines of code.
 IsThirdParty
  
Flag to check if the type is in a third party project.  
IsPublic:
 
Flag to check if this type is public. 
IsPrivate:
 
Flag to check if this type is public. 
IsNested:
 
Flag to check if this type is a nested type. 
IsProtected:
 
Flag to check if this type is protected.          
Methods:
 
To get all the type methods.  
Getters:
 
To get all the type getters.  
Setters:
  To get all the type setters.                   
Fields:
To get all the type fields.   
Types:
 
To get all the internal types inside this type.            
ParentProject:
  
To get the type project.    
ParentNamespace:
 
To get the type namespace.
OlderVersion:
 
To get the baseline namespace object if the namespace is in the current snapshot.      
NewerVersion:
 To get the current snapshot namespace object if the namespace is in the baseline.
WasAdded:
 Flag to check if this project was added. 
WasRemoved:
 Flag to check if this project was removed.
WasChanged:
 Flag to check if this project was changed. 
NewCodeWasAdded:
 Flag to check that a new code element was added to the project.        
Application:
To get the application project 
Debt:
 To get the technical debt of the namespace 
DebtRank:
 To get the debt rank of this namespace, it could A,B,C,D or E.
DebtRatio:
 To get the debt percent for this namespace
IsInBaseline:
 Flag to check if the namespace is in the baseline application.
Issues:
 
To get the namespace issues. 
SourceFile:
 
To get the type source file.     
IsStructure:
 
Flag to check if the type is a structure.
IsClass:
 
Flag to check if the type is a class.
IsAbstract:
 Flag to check if the type is an abstract class.
IsExceptionClass:
 Flag to check if the type is an exception class.
IsInterface:
 Flag to check if the type is an interface.
IsEnumeration:
 Flag to check if the type is an enumeration.
IsStruct:
  Flag to check if the type is a structure.
IsNested:
 Flag to check if the type is a nested type. 
CyclomaticComplexity:
To get the cyclomatic complexity metric.
MaintainabilityIndex:
 
To get the maintainability index metric. 
TypesUsed:
  
To get all the used types         
BaseClasses:
 
To get all the base classes.         
InterfacesImplemented:
 
To get all the implemented interfaces.          
TypesUsingMe:
 
To get all the types using me   
DerivativeTypes:
 
To get all the derivative types   
DepthOfInheritence:
 
To get the depth of inheritance metric    
LCOM:   
To get the cohesion LCOM metric    
LCOMHS:
 
To get the cohesion LCOMHS metric.  
ABT:        
To get the association between types metric.    
AfferentCoupling: 
 To get the afferent coupling metric.
EfferentCoupling:
  
To get the efferent coupling metric.    
NbFields:
  
To get the number of fields of this type.    
NbMethods:
   
To get the number of methods of this type.    
DirectChildren:
  To get direct classes inheriting from this type.    
Constructors:
  
To get all the constructors of this type.