PHP Class PDepend\Report\Jdepend\Xml

Inheritance: extends PDepend\Source\ASTVisitor\AbstractASTVisitor, implements PDepend\Report\CodeAwareGenerator, implements PDepend\Report\FileAwareGenerator
Datei anzeigen Open project: pdepend/pdepend Class Usage Examples

Protected Properties

Property Type Description
$abstractClasses DOMElement The abstract classes element for the current package.
$analyzer PDepend\Metrics\Analyzer\DependencyAnalyzer The dependency result set.
$code PDepend\Source\AST\ASTArtifactList The raw {@link \PDepend\Source\AST\ASTNamespace} instances.
$concreteClasses DOMElement The concrete classes element for the current package.
$cycles DOMElement The Cycles dom element.
$fileSet PDepend\Source\AST\ASTCompilationUnit[] Set of all analyzed files.
$nodeMetrics array(string=>array) List of all collected node metrics.
$packages DOMElement The Packages dom element.
$projectMetrics array(string=>mixed) List of all generated project metrics.

Public Methods

Method Description
close ( ) : void Closes the logger process and writes the output file.
getAcceptedAnalyzers ( ) : array(string) Returns an array with accepted analyzer types. These types can be concrete analyzer classes or one of the descriptive analyzer interfaces.
log ( PDepend\Metrics\Analyzer $analyzer ) : boolean Adds an analyzer to log. If this logger accepts the given analyzer it with return true, otherwise the return value is false.
setArtifacts ( PDepend\Source\AST\ASTArtifactList $artifacts ) : void Sets the context code nodes.
setLogFile ( string $logFile ) : void Sets the output log file.
visitClass ( PDepend\Source\AST\ASTClass $class ) : void Visits a class node.
visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void Visits a code interface object.
visitNamespace ( PDepend\Source\AST\ASTNamespace $namespace ) : void Visits a package node.

Method Details

close() public method

Closes the logger process and writes the output file.
public close ( ) : void
return void

getAcceptedAnalyzers() public method

Returns an array with accepted analyzer types. These types can be concrete analyzer classes or one of the descriptive analyzer interfaces.
public getAcceptedAnalyzers ( ) : array(string)
return array(string)

log() public method

Adds an analyzer to log. If this logger accepts the given analyzer it with return true, otherwise the return value is false.
public log ( PDepend\Metrics\Analyzer $analyzer ) : boolean
$analyzer PDepend\Metrics\Analyzer The analyzer to log.
return boolean

setArtifacts() public method

Sets the context code nodes.
public setArtifacts ( PDepend\Source\AST\ASTArtifactList $artifacts ) : void
$artifacts PDepend\Source\AST\ASTArtifactList
return void

setLogFile() public method

Sets the output log file.
public setLogFile ( string $logFile ) : void
$logFile string The output log file.
return void

visitClass() public method

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

visitInterface() public method

Visits a code interface object.
public visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void
$interface PDepend\Source\AST\ASTInterface
return void

visitNamespace() public method

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

Property Details

$abstractClasses protected_oe property

The abstract classes element for the current package.
protected DOMElement $abstractClasses
return DOMElement

$analyzer protected_oe property

The dependency result set.
protected DependencyAnalyzer,PDepend\Metrics\Analyzer $analyzer
return PDepend\Metrics\Analyzer\DependencyAnalyzer

$code protected_oe property

The raw {@link \PDepend\Source\AST\ASTNamespace} instances.
protected ASTArtifactList,PDepend\Source\AST $code
return PDepend\Source\AST\ASTArtifactList

$concreteClasses protected_oe property

The concrete classes element for the current package.
protected DOMElement $concreteClasses
return DOMElement

$cycles protected_oe property

The Cycles dom element.
protected DOMElement $cycles
return DOMElement

$fileSet protected_oe property

Set of all analyzed files.
protected ASTCompilationUnit[],PDepend\Source\AST $fileSet
return PDepend\Source\AST\ASTCompilationUnit[]

$nodeMetrics protected_oe property

List of all collected node metrics.
protected array(string=>array) $nodeMetrics
return array(string=>array)

$packages protected_oe property

The Packages dom element.
protected DOMElement $packages
return DOMElement

$projectMetrics protected_oe property

List of all generated project metrics.
protected array(string=>mixed) $projectMetrics
return array(string=>mixed)