Property | Type | Description | |
---|---|---|---|
$code | PDepend\Source\AST\ASTArtifactList | The raw {@link \PDepend\Source\AST\ASTNamespace} instances. | |
$fileSet | Set of all analyzed files. |
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. | |
visitFunction ( PDepend\Source\AST\ASTFunction $function ) : void | Visits a function node. | |
visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void | Visits a code interface object. | |
visitMethod ( PDepend\Source\AST\ASTMethod $method ) : void | Visits a method node. | |
visitNamespace ( PDepend\Source\AST\ASTNamespace $namespace ) : void | Visits a namespace node. | |
visitTrait ( PDepend\Source\AST\ASTTrait $trait ) : void | Visits a trait node. |
Method | Description | |
---|---|---|
writeFileReference ( DOMElement $xml, |
Appends a file reference element to the given $xml element. | |
writeNodeMetrics ( DOMElement $xml, PDepend\Source\AST\AbstractASTArtifact $node ) : void | Aggregates all metrics for the given $node instance and adds them to the \DOMElement |
Method | Description | |
---|---|---|
generateTypeXml ( PDepend\Source\AST\ASTClass $type, string $typeIdentifier ) : void | Generates the XML for a class or trait node. | |
getProjectMetrics ( ) : array(string=>mixed) | Returns an array with all collected project metrics. |
public getAcceptedAnalyzers ( ) : array(string) | ||
return | array(string) |
public setArtifacts ( PDepend\Source\AST\ASTArtifactList $artifacts ) : void | ||
$artifacts | PDepend\Source\AST\ASTArtifactList | |
return | void |
public setLogFile ( string $logFile ) : void | ||
$logFile | string | The output log file. |
return | void |
public visitClass ( PDepend\Source\AST\ASTClass $class ) : void | ||
$class | PDepend\Source\AST\ASTClass | |
return | void |
public visitFunction ( PDepend\Source\AST\ASTFunction $function ) : void | ||
$function | PDepend\Source\AST\ASTFunction | |
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 |
public visitTrait ( PDepend\Source\AST\ASTTrait $trait ) : void | ||
$trait | PDepend\Source\AST\ASTTrait | |
return | void |
protected writeFileReference ( DOMElement $xml, |
||
$xml | DOMElement | The parent xml element. |
$compilationUnit | The code file instance. | |
return | void |
protected writeNodeMetrics ( DOMElement $xml, PDepend\Source\AST\AbstractASTArtifact $node ) : void | ||
$xml | DOMElement | |
$node | PDepend\Source\AST\AbstractASTArtifact | |
return | void |
protected ASTArtifactList,PDepend\Source\AST $code | ||
return | PDepend\Source\AST\ASTArtifactList |