Свойство | Тип | Описание | |
---|---|---|---|
$nodeSet |
Метод | Описание | |
---|---|---|
analyze ( PDepend\Source\AST\ASTNamespace[] $namespaces ) : void | Processes all {@link \PDepend\Source\AST\ASTNamespace} code nodes. | |
getAfferents ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[] | Returns an array of all afferent nodes. | |
getCycle ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[] | Returns an array of nodes that build a cycle for the requested node or it returns null if no cycle exists . | |
getEfferents ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[] | Returns an array of all efferent nodes. | |
getStats ( PDepend\Source\AST\AbstractASTArtifact $node ) : array | Returns the statistics for the requested node. | |
visitClass ( PDepend\Source\AST\ASTClass $class ) : void | Visits a class node. | |
visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void | Visits an interface node. | |
visitMethod ( PDepend\Source\AST\ASTMethod $method ) : void | Visits a method node. | |
visitNamespace ( PDepend\Source\AST\ASTNamespace $namespace ) : void | Visits a namespace node. |
Метод | Описание | |
---|---|---|
calculateAbstractness ( ) : void | Calculates the abstractness for all analyzed nodes. | |
calculateDistance ( ) : void | Calculates the distance to an optimal value. | |
calculateInstability ( ) : void | Calculates the instability for all analyzed nodes. | |
collectCycle ( array &$list, PDepend\Source\AST\ASTNamespace $namespace ) : boolean | Collects a single cycle that is reachable by this namespace. All namespaces that are part of the cylce are stored in the given $list array. | |
initNamespaceMetric ( PDepend\Source\AST\ASTNamespace $namespace ) : void | Initializes the node metric record for the given $namespace. | |
postProcess ( ) : void | Post processes all analyzed nodes. | |
visitType ( PDepend\Source\AST\AbstractASTClassOrInterface $type ) : void | Generic visit method for classes and interfaces. Both visit methods delegate calls to this method. |
Метод | Описание | |
---|---|---|
collectDependencies ( PDepend\Source\AST\ASTNamespace $namespaceA, PDepend\Source\AST\ASTNamespace $namespaceB ) : void | Collects the dependencies between the two given namespaces. |
protected calculateAbstractness ( ) : void | ||
Результат | void |
protected calculateDistance ( ) : void | ||
Результат | void |
protected calculateInstability ( ) : void | ||
Результат | void |
protected collectCycle ( array &$list, PDepend\Source\AST\ASTNamespace $namespace ) : boolean | ||
$list | array | |
$namespace | PDepend\Source\AST\ASTNamespace | |
Результат | boolean | If this method detects a cycle the return value is true otherwise this method will return false. |
public getAfferents ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[] | ||
$node | PDepend\Source\AST\AbstractASTArtifact | |
Результат | PDepend\Source\AST\AbstractASTArtifact[] |
public getCycle ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[] | ||
$node | PDepend\Source\AST\AbstractASTArtifact | |
Результат | PDepend\Source\AST\AbstractASTArtifact[] |
public getEfferents ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[] | ||
$node | PDepend\Source\AST\AbstractASTArtifact | |
Результат | PDepend\Source\AST\AbstractASTArtifact[] |
protected initNamespaceMetric ( PDepend\Source\AST\ASTNamespace $namespace ) : void | ||
$namespace | PDepend\Source\AST\ASTNamespace | |
Результат | void |
protected postProcess ( ) : void | ||
Результат | void |
public visitClass ( PDepend\Source\AST\ASTClass $class ) : void | ||
$class | PDepend\Source\AST\ASTClass | |
Результат | void |
public visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void | ||
$interface | PDepend\Source\AST\ASTInterface | |
Результат | void |
public visitMethod ( PDepend\Source\AST\ASTMethod $method ) : void | ||
$method | PDepend\Source\AST\ASTMethod | |
Результат | void |
public visitNamespace ( PDepend\Source\AST\ASTNamespace $namespace ) : void | ||
$namespace | PDepend\Source\AST\ASTNamespace | |
Результат | void |