module lang::php::stats::OOMetrics
rascal-0.40.17
php-analysis-0.2.4
Usage
import lang::php::stats::OOMetrics;
Source code
http://github.com/cwi-swat/php-analysis/blob/main/src/main/rascal/lang/php/stats/OOMetrics.rsc
Dependencies
import List;
import Relation;
import lang::php::ast::AbstractSyntax;
import lang::php::ast::System;
function getClasses
list[ClassDef] getClasses(System product)
function getInterfaces
list[InterfaceDef] getInterfaces(System product)
function getMethods
list[ClassItem] getMethods(System product)
function getProperties
list[Property] getProperties(System product)
function getPropertyDecls
list[ClassItem] getPropertyDecls(System product)
function getFunctions
list[Stmt] getFunctions(System product)
function classesCount
int classesCount(System product)
function interfaceCount
int interfaceCount(System product)
function methodCount
int methodCount(System product)
function propertyCount
int propertyCount(System product)
function functionCount
int functionCount(System product)
function methodsPerClass
rel[loc classLoc, str className, ClassItem method] methodsPerClass(System product)
function methodsPerInterface
rel[loc ifcLoc, str ifcName, ClassItem method] methodsPerInterface(System product)
function inheritsRelation
rel[str parent, str child] inheritsRelation(System product)
function implementsRelation
rel[str parent, str child] implementsRelation(System product)
function extendsRelation
rel[str parent, str child] extendsRelation(System product)
function inheritsChains
map[str child,list[str] parents] inheritsChains(System product)
function chainSizes
map[int size, int count] chainSizes(map[str child, list[str] parents] chain)
function methodSizes
map[int size, int count] methodSizes(System product)