Skip to main content

module lang::php::stats::OOMetrics

rascal-0.43.0
org.rascalmpl.php-analysis-0.3.6

Usage​

import lang::php::stats::OOMetrics;

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)