Property | Type | Description | |
---|---|---|---|
$nodeSet |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
collectDependencies ( PDepend\Source\AST\ASTNamespace $namespaceA, PDepend\Source\AST\ASTNamespace $namespaceB ) : void | Collects the dependencies between the two given namespaces. |
protected calculateAbstractness ( ) : void | ||
return | void |
protected calculateDistance ( ) : void | ||
return | void |
protected calculateInstability ( ) : void | ||
return | void |
protected collectCycle ( array &$list, PDepend\Source\AST\ASTNamespace $namespace ) : boolean | ||
$list | array | |
$namespace | PDepend\Source\AST\ASTNamespace | |
return | 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 | |
return | PDepend\Source\AST\AbstractASTArtifact[] |
public getCycle ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[] | ||
$node | PDepend\Source\AST\AbstractASTArtifact | |
return | PDepend\Source\AST\AbstractASTArtifact[] |
public getEfferents ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[] | ||
$node | PDepend\Source\AST\AbstractASTArtifact | |
return | PDepend\Source\AST\AbstractASTArtifact[] |
protected initNamespaceMetric ( PDepend\Source\AST\ASTNamespace $namespace ) : void | ||
$namespace | PDepend\Source\AST\ASTNamespace | |
return | void |
protected postProcess ( ) : void | ||
return | void |
public visitClass ( PDepend\Source\AST\ASTClass $class ) : void | ||
$class | PDepend\Source\AST\ASTClass | |
return | void |
public visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void | ||
$interface | PDepend\Source\AST\ASTInterface | |
return | void |
public visitMethod ( PDepend\Source\AST\ASTMethod $method ) : void | ||
$method | PDepend\Source\AST\ASTMethod | |
return | void |
public visitNamespace ( PDepend\Source\AST\ASTNamespace $namespace ) : void | ||
$namespace | PDepend\Source\AST\ASTNamespace | |
return | void |