PHP 클래스 PDepend\Metrics\Analyzer\DependencyAnalyzer

상속: extends PDepend\Metrics\AbstractAnalyzer
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

analyze() 공개 메소드

Processes all {@link \PDepend\Source\AST\ASTNamespace} code nodes.
public analyze ( PDepend\Source\AST\ASTNamespace[] $namespaces ) : void
$namespaces PDepend\Source\AST\ASTNamespace[]
리턴 void

calculateAbstractness() 보호된 메소드

Calculates the abstractness for all analyzed nodes.
protected calculateAbstractness ( ) : void
리턴 void

calculateDistance() 보호된 메소드

Calculates the distance to an optimal value.
protected calculateDistance ( ) : void
리턴 void

calculateInstability() 보호된 메소드

Calculates the instability for all analyzed nodes.
protected calculateInstability ( ) : void
리턴 void

collectCycle() 보호된 메소드

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.
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.

getAfferents() 공개 메소드

Returns an array of all afferent nodes.
public getAfferents ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[]
$node PDepend\Source\AST\AbstractASTArtifact
리턴 PDepend\Source\AST\AbstractASTArtifact[]

getCycle() 공개 메소드

Returns an array of nodes that build a cycle for the requested node or it returns null if no cycle exists .
public getCycle ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[]
$node PDepend\Source\AST\AbstractASTArtifact
리턴 PDepend\Source\AST\AbstractASTArtifact[]

getEfferents() 공개 메소드

Returns an array of all efferent nodes.
public getEfferents ( PDepend\Source\AST\AbstractASTArtifact $node ) : PDepend\Source\AST\AbstractASTArtifact[]
$node PDepend\Source\AST\AbstractASTArtifact
리턴 PDepend\Source\AST\AbstractASTArtifact[]

getStats() 공개 메소드

Returns the statistics for the requested node.
public getStats ( PDepend\Source\AST\AbstractASTArtifact $node ) : array
$node PDepend\Source\AST\AbstractASTArtifact
리턴 array

initNamespaceMetric() 보호된 메소드

Initializes the node metric record for the given $namespace.
protected initNamespaceMetric ( PDepend\Source\AST\ASTNamespace $namespace ) : void
$namespace PDepend\Source\AST\ASTNamespace
리턴 void

postProcess() 보호된 메소드

Post processes all analyzed nodes.
protected postProcess ( ) : void
리턴 void

visitClass() 공개 메소드

Visits a class node.
public visitClass ( PDepend\Source\AST\ASTClass $class ) : void
$class PDepend\Source\AST\ASTClass
리턴 void

visitInterface() 공개 메소드

Visits an interface node.
public visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void
$interface PDepend\Source\AST\ASTInterface
리턴 void

visitMethod() 공개 메소드

Visits a method node.
public visitMethod ( PDepend\Source\AST\ASTMethod $method ) : void
$method PDepend\Source\AST\ASTMethod
리턴 void

visitNamespace() 공개 메소드

Visits a namespace node.
public visitNamespace ( PDepend\Source\AST\ASTNamespace $namespace ) : void
$namespace PDepend\Source\AST\ASTNamespace
리턴 void

visitType() 보호된 메소드

Generic visit method for classes and interfaces. Both visit methods delegate calls to this method.
protected visitType ( PDepend\Source\AST\AbstractASTClassOrInterface $type ) : void
$type PDepend\Source\AST\AbstractASTClassOrInterface
리턴 void

프로퍼티 상세

$nodeSet 보호되어 있는 프로퍼티

protected $nodeSet