Свойство | Type | Description | |
---|---|---|---|
$cache | PDepend\Util\Cache\CacheDriver | The internal used cache instance. | |
$context | PDepend\Source\Builder\BuilderContext | The ast builder context. | |
$defaultCompilationUnit | Default source file that acts as a dummy. | ||
$defaultPackage | PDepend\Source\AST\ASTNamespace | Default package which contains all functions and classes with an unknown scope. |
Méthode | Description | |
---|---|---|
__construct ( ) | Constructs a new builder instance. | |
buildAnonymousClass ( ) : |
Builds an anonymous class instance. | |
buildAstAllocationExpression ( string $image ) : PDepend\Source\AST\ASTAllocationExpression | Builds a new allocation expression node. | |
buildAstArguments ( ) : PDepend\Source\AST\ASTArguments | Builds a new arguments list. | |
buildAstArray ( ) : PDepend\Source\AST\ASTArray | Builds a new php array node. | |
buildAstArrayElement ( ) : PDepend\Source\AST\ASTArrayElement | Builds a new array element node. | |
buildAstArrayIndexExpression ( ) : PDepend\Source\AST\ASTArrayIndexExpression | Builds a new array-expression node. | |
buildAstAssignmentExpression ( string $image ) : PDepend\Source\AST\ASTAssignmentExpression | Builds a new assignment expression node. | |
buildAstBooleanAndExpression ( ) : PDepend\Source\AST\ASTBooleanAndExpression | Builds a new boolean and-expression. | |
buildAstBooleanOrExpression ( ) : PDepend\Source\AST\ASTBooleanOrExpression | Builds a new boolean or-expression. | |
buildAstBreakStatement ( string $image ) : PDepend\Source\AST\ASTBreakStatement | Builds a new break-statement node instance. | |
buildAstCastExpression ( string $image ) : PDepend\Source\AST\ASTCastExpression | Builds a new cast-expression node instance. | |
buildAstCatchStatement ( string $image ) : PDepend\Source\AST\ASTCatchStatement | Builds a new catch-statement node. | |
buildAstClassFqnPostfix ( ) : PDepend\Source\AST\ASTClassFqnPostfix | Builds a new full qualified class name postfix expression. | |
buildAstClassOrInterfaceReference ( string $qualifiedName ) : PDepend\Source\AST\ASTClassOrInterfaceReference | Builds a new code type reference instance. | |
buildAstClassReference ( string $qualifiedName ) : PDepend\Source\AST\ASTClassReference | Builds a new code type reference instance. | |
buildAstCloneExpression ( string $image ) : PDepend\Source\AST\ASTCloneExpression | Builds a new clone-expression node. | |
buildAstClosure ( ) : PDepend\Source\AST\ASTClosure | Builds a new closure node. | |
buildAstComment ( string $cdata ) : PDepend\Source\AST\ASTComment | Builds a new comment node instance. | |
buildAstCompoundExpression ( ) : PDepend\Source\AST\ASTCompoundExpression | Builds a new compound expression node. | |
buildAstCompoundVariable ( string $image ) : PDepend\Source\AST\ASTCompoundVariable | Builds a new compound variable node. | |
buildAstConditionalExpression ( ) : PDepend\Source\AST\ASTConditionalExpression | Builds a new boolean conditional-expression. | |
buildAstConstant ( string $image ) : PDepend\Source\AST\ASTConstant | Builds a new constant node. | |
buildAstConstantDeclarator ( string $image ) : PDepend\Source\AST\ASTConstantDeclarator | Builds a new constant declarator node. | |
buildAstConstantDefinition ( string $image ) : PDepend\Source\AST\ASTConstantDefinition | Builds a new constant definition node. | |
buildAstConstantPostfix ( string $image ) : PDepend\Source\AST\ASTConstantPostfix | Builds a new constant postfix expression. | |
buildAstContinueStatement ( string $image ) : PDepend\Source\AST\ASTContinueStatement | Builds a new continue-statement node instance. | |
buildAstDeclareStatement ( ) : PDepend\Source\AST\ASTDeclareStatement | Builds a new declare-statement node. | |
buildAstDoWhileStatement ( string $image ) : PDepend\Source\AST\ASTDoWhileStatement | Builds a new do/while-statement node. | |
buildAstEchoStatement ( string $image ) : PDepend\Source\AST\ASTEchoStatement | Builds a new exit-statement instance. | |
buildAstElseIfStatement ( string $image ) : PDepend\Source\AST\ASTElseIfStatement | Builds a new elseif statement node. | |
buildAstEvalExpression ( string $image ) : PDepend\Source\AST\ASTEvalExpression | Builds a new eval-expression node. | |
buildAstExitExpression ( string $image ) : PDepend\Source\AST\ASTExitExpression | Builds a new exit-expression instance. | |
buildAstExpression ( string $image = null ) : PDepend\Source\AST\ASTExpression | Builds a new expression node. | |
buildAstFieldDeclaration ( ) : PDepend\Source\AST\ASTFieldDeclaration | Builds a new field declaration node. | |
buildAstFinallyStatement ( ) : PDepend\Source\AST\ASTFinallyStatement | Builds a new finally-statement node. | |
buildAstForInit ( ) : PDepend\Source\AST\ASTForInit | Builds a new for-init node. | |
buildAstForStatement ( string $image ) : PDepend\Source\AST\ASTForStatement | Builds a new for statement node. | |
buildAstForUpdate ( ) : PDepend\Source\AST\ASTForUpdate | Builds a new for-update node. | |
buildAstForeachStatement ( string $image ) : PDepend\Source\AST\ASTForeachStatement | Builds a new foreach-statement node. | |
buildAstFormalParameter ( ) : PDepend\Source\AST\ASTFormalParameter | Builds a new formal parameter node. | |
buildAstFormalParameters ( ) : PDepend\Source\AST\ASTFormalParameters | Builds a new formal parameters node. | |
buildAstFunctionPostfix ( string $image ) : PDepend\Source\AST\ASTFunctionPostfix | Builds a new function postfix expression. | |
buildAstGlobalStatement ( ) : PDepend\Source\AST\ASTGlobalStatement | Builds a new global-statement instance. | |
buildAstGotoStatement ( string $image ) : PDepend\Source\AST\ASTGotoStatement | Builds a new goto-statement instance. | |
buildAstHeredoc ( ) : PDepend\Source\AST\ASTHeredoc | Builds a new heredoc node. | |
buildAstIdentifier ( string $image ) : PDepend\Source\AST\ASTIdentifier | Builds a new identifier node. | |
buildAstIfStatement ( string $image ) : PDepend\Source\AST\ASTIfStatement | Builds a new if statement node. | |
buildAstIncludeExpression ( ) : PDepend\Source\AST\ASTIncludeExpression | Builds a new include- or include_once-expression. | |
buildAstInstanceOfExpression ( string $image ) : PDepend\Source\AST\ASTInstanceOfExpression | Builds a new instanceof expression node. | |
buildAstIssetExpression ( ) : PDepend\Source\AST\ASTIssetExpression | Builds a new isset-expression node. | |
buildAstLabelStatement ( string $image ) : PDepend\Source\AST\ASTLabelStatement | Builds a new label-statement instance. | |
buildAstListExpression ( string $image ) : PDepend\Source\AST\ASTListExpression | Builds a new list-expression node. | |
buildAstLiteral ( string $image ) : PDepend\Source\AST\ASTLiteral | Builds a new literal node. | |
buildAstLogicalAndExpression ( ) : PDepend\Source\AST\ASTLogicalAndExpression | Builds a new logical and-expression. | |
buildAstLogicalOrExpression ( ) : PDepend\Source\AST\ASTLogicalOrExpression | Builds a new logical or-expression. | |
buildAstLogicalXorExpression ( ) : PDepend\Source\AST\ASTLogicalXorExpression | Builds a new logical xor-expression. | |
buildAstMemberPrimaryPrefix ( string $image ) : PDepend\Source\AST\ASTMemberPrimaryPrefix | Builds a new member primary expression node. | |
buildAstMethodPostfix ( string $image ) : PDepend\Source\AST\ASTMethodPostfix | Builds a new method postfix expression. | |
buildAstParentReference ( PDepend\Source\AST\ASTClassOrInterfaceReference $reference ) : PDepend\Source\AST\ASTParentReference | Builds a new parent reference instance. | |
buildAstPostfixExpression ( string $image ) : PDepend\Source\AST\ASTPostfixExpression | Builds a new postfix-expression node instance. | |
buildAstPreDecrementExpression ( ) : PDepend\Source\AST\ASTPreDecrementExpression | Builds a new pre-decrement-expression node instance. | |
buildAstPreIncrementExpression ( ) : PDepend\Source\AST\ASTPreIncrementExpression | Builds a new pre-increment-expression node instance. | |
buildAstPrintExpression ( ) : PDepend\Source\AST\ASTConditionalExpression | Builds a new print-expression. | |
buildAstPropertyPostfix ( string $image ) : PDepend\Source\AST\ASTPropertyPostfix | Builds a new property postfix expression. | |
buildAstRequireExpression ( ) : PDepend\Source\AST\ASTRequireExpression | Builds a new require- or require_once-expression. | |
buildAstReturnStatement ( string $image ) : PDepend\Source\AST\ASTReturnStatement | Builds a new return statement node instance. | |
buildAstScalarType ( string $image ) : PDepend\Source\AST\ASTScalarType | Builds a new primitive type node. | |
buildAstScope ( ) : PDepend\Source\AST\ASTScope | Builds a new function/method scope instance. | |
buildAstScopeStatement ( ) : PDepend\Source\AST\ASTScopeStatement | Builds a new scope-statement instance. | |
buildAstSelfReference ( PDepend\Source\AST\AbstractASTClassOrInterface $type ) : PDepend\Source\AST\ASTSelfReference | Builds a new self reference instance. | |
buildAstShiftLeftExpression ( ) : PDepend\Source\AST\ASTShiftLeftExpression | Build a new shift left expression. | |
buildAstShiftRightExpression ( ) : PDepend\Source\AST\ASTShiftRightExpression | Build a new shift right expression. | |
buildAstStatement ( ) : PDepend\Source\AST\ASTStatement | Builds a new statement instance. | |
buildAstStaticReference ( PDepend\Source\AST\AbstractASTClassOrInterface $owner ) : PDepend\Source\AST\ASTStaticReference | Builds a new static reference instance. | |
buildAstStaticVariableDeclaration ( string $image ) : PDepend\Source\AST\ASTStaticVariableDeclaration | Builds a new static variable declaration node. | |
buildAstString ( ) : PDepend\Source\AST\ASTString | Builds a new php string node. | |
buildAstStringIndexExpression ( ) : PDepend\Source\AST\ASTStringIndexExpression | Builds a new string-expression node. | |
buildAstSwitchLabel ( string $image ) : PDepend\Source\AST\ASTSwitchLabel | Builds a new switch-label node. | |
buildAstSwitchStatement ( ) : PDepend\Source\AST\ASTSwitchStatement | Builds a new switch-statement-node. | |
buildAstThrowStatement ( string $image ) : PDepend\Source\AST\ASTThrowStatement | Builds a new throw-statement instance. | |
buildAstTraitAdaptation ( ) : PDepend\Source\AST\ASTTraitAdaptation | Builds a new trait adaptation scope | |
buildAstTraitAdaptationAlias ( string $image ) : PDepend\Source\AST\ASTTraitAdaptationAlias | Builds a new trait adaptation alias statement. | |
buildAstTraitAdaptationPrecedence ( string $image ) : PDepend\Source\AST\ASTTraitAdaptationPrecedence | Builds a new trait adaptation precedence statement. | |
buildAstTraitReference ( string $qualifiedName ) : PDepend\Source\AST\ASTTraitReference | Builds a new trait reference node. | |
buildAstTraitUseStatement ( ) : PDepend\Source\AST\ASTTraitUseStatement | Builds a new trait use-statement node. | |
buildAstTryStatement ( string $image ) : PDepend\Source\AST\ASTTryStatement | Builds a new try-statement instance. | |
buildAstTypeArray ( ) : PDepend\Source\AST\ASTTypeArray | Builds a new array type node. | |
buildAstTypeCallable ( ) : PDepend\Source\AST\ASTTypeCallable | Builds a new node for the callable type. | |
buildAstUnaryExpression ( string $image ) : PDepend\Source\AST\ASTUnaryExpression | Builds a new unary expression node instance. | |
buildAstUnsetStatement ( ) : PDepend\Source\AST\ASTUnsetStatement | Builds a new unset-statement instance. | |
buildAstVariable ( string $image ) : PDepend\Source\AST\ASTVariable | Builds a new variable node. | |
buildAstVariableDeclarator ( string $image ) : PDepend\Source\AST\ASTVariableDeclarator | Builds a new variable declarator node. | |
buildAstVariableVariable ( string $image ) : PDepend\Source\AST\ASTVariableVariable | Builds a new variable variable node. | |
buildAstWhileStatement ( string $image ) : PDepend\Source\AST\ASTWhileStatement | Builds a new while-statement node. | |
buildAstYieldStatement ( string $image ) : PDepend\Source\AST\ASTYieldStatement | Builds a new yield-statement instance. | |
buildClass ( string $name ) : PDepend\Source\AST\ASTClass | Builds a new class instance or reuses a previous created class. | |
buildFunction ( string $name ) : PDepend\Source\AST\ASTFunction | Builds a new function instance. | |
buildInterface ( string $name ) : PDepend\Source\AST\ASTInterface | Builds a new new interface instance. | |
buildMethod ( string $name ) : PDepend\Source\AST\ASTMethod | Builds a new method instance. | |
buildNamespace ( string $name ) : PDepend\Source\AST\ASTNamespace | Builds a new package instance. | |
buildTrait ( string $qualifiedName ) : PDepend\Source\AST\ASTTrait | Builds a new php trait instance. | |
getClass ( string $qualifiedName ) : PDepend\Source\AST\ASTClass | This method will try to find an already existing instance for the given qualified name. It will create a new {@link \PDepend\Source\AST\ASTClass} instance when no matching type exists. | |
getClassOrInterface ( string $qualifiedName ) : PDepend\Source\AST\AbstractASTClassOrInterface | This method will try to find an already existing instance for the given qualified name. It will create a new {@link \PDepend\Source\AST\ASTClass} instance when no matching type exists. | |
getInterface ( string $qualifiedName ) : PDepend\Source\AST\ASTInterface | This method will try to find an already existing instance for the given qualified name. It will create a new {@link \PDepend\Source\AST\ASTInterface} instance when no matching type exists. | |
getIterator ( ) : PDepend\Source\AST\ASTArtifactList | Returns an iterator with all generated {@link \PDepend\Source\AST\ASTNamespace} objects. | |
getNamespaces ( ) : PDepend\Source\AST\ASTNamespace[] | Returns an iterator with all generated {@link \PDepend\Source\AST\ASTNamespace} objects. | |
getTrait ( string $qualifiedName ) : PDepend\Source\AST\ASTTrait | This method will try to find an already existing instance for the given qualified name. It will create a new {@link \PDepend\Source\AST\ASTTrait} instance when no matching type exists. | |
restoreClass ( PDepend\Source\AST\ASTClass $class ) : void | Restores a class within the internal type scope. | |
restoreFunction ( PDepend\Source\AST\ASTFunction $function ) : void | Restores a function within the internal type scope. | |
restoreInterface ( PDepend\Source\AST\ASTInterface $interface ) : void | Restores an interface within the internal type scope. | |
restoreTrait ( PDepend\Source\AST\ASTTrait $trait ) : void | Restores a trait within the internal type scope. | |
setCache ( PDepend\Util\Cache\CacheDriver $cache ) : |
Setter method for the currently used token cache. |
Méthode | Description | |
---|---|---|
buildClassInternal ( string $qualifiedName ) : PDepend\Source\AST\ASTClass | Builds a new class instance or reuses a previous created class. | |
buildInterfaceInternal ( string $qualifiedName ) : PDepend\Source\AST\ASTInterface | Builds a new new interface instance. | |
buildTraitInternal ( string $qualifiedName ) : PDepend\Source\AST\ASTTrait | Builds a new trait instance or reuses a previous created trait. | |
checkBuilderState ( boolean $internal = false ) : void | Checks that the parser is not frozen or a request is flagged as internal. | |
extractNamespaceName ( string $qualifiedName ) : string | Extracts the package name of a qualified PHP 5.3 class identifier. | |
extractTypeName ( string $qualifiedName ) : string | Extracts the type name of a qualified PHP 5.3 type identifier. | |
findClass ( string $qualifiedName ) : PDepend\Source\AST\ASTClass | This method tries to find a class instance matching for the given qualified name in all scopes already processed. It will return the best matching instance or null if no match exists. | |
findInterface ( string $qualifiedName ) : PDepend\Source\AST\ASTInterface | This method tries to find an interface instance matching for the given qualified name in all scopes already processed. It will return the best matching instance or null if no match exists. | |
findTrait ( string $qualifiedName ) : PDepend\Source\AST\ASTTrait | This method tries to find a trait instance matching for the given qualified name in all scopes already processed. It will return the best matching instance or null if no match exists. | |
findType ( array $instances, string $qualifiedName ) : |
This method tries to find an interface or class instance matching for the given qualified name in all scopes already processed. It will return the best matching instance or null if no match exists. | |
freeze ( ) : void | This method will freeze the actual builder state and create a second runtime scope. | |
isDefault ( string $namespaceName ) : boolean | Returns true if the given package is the default package. | |
storeClass ( string $className, string $namespaceName, PDepend\Source\AST\ASTClass $class ) : void | This method will persist a class instance for later reuse. | |
storeInterface ( string $interfaceName, string $namespaceName, PDepend\Source\AST\ASTInterface $interface ) : void | This method will persist an interface instance for later reuse. | |
storeTrait ( string $traitName, string $namespaceName, PDepend\Source\AST\ASTTrait $trait ) : void | This method will persist a trait instance for later reuse. |
Méthode | Description | |
---|---|---|
buildAstNodeInstance ( string $className, string $image = null ) : PDepend\Source\AST\ASTNode | Creates a {@link \PDepend\Source\AST\ASTNode} instance. | |
copyTypesWithPackage ( array $originalTypes ) : array | Creates a copy of the given input array, but skips all types that do not contain a parent package. | |
getPreparedNamespaces ( ) : PDepend\Source\AST\ASTArtifactList | Returns an iterator with all generated {@link \PDepend\Source\AST\ASTNamespace} objects. |
public buildAnonymousClass ( ) : |
||
Résultat |
public buildAstAllocationExpression ( string $image ) : PDepend\Source\AST\ASTAllocationExpression | ||
$image | string | The source image of this expression. |
Résultat | PDepend\Source\AST\ASTAllocationExpression |
------------
Foo::bar($x, $y, $z);
------------
------------
$foo->bar($x, $y, $z);
------------
public buildAstArguments ( ) : PDepend\Source\AST\ASTArguments | ||
Résultat | PDepend\Source\AST\ASTArguments |
public buildAstArray ( ) : PDepend\Source\AST\ASTArray | ||
Résultat | PDepend\Source\AST\ASTArray |
public buildAstArrayElement ( ) : PDepend\Source\AST\ASTArrayElement | ||
Résultat | PDepend\Source\AST\ASTArrayElement |
public buildAstArrayIndexExpression ( ) : PDepend\Source\AST\ASTArrayIndexExpression | ||
Résultat | PDepend\Source\AST\ASTArrayIndexExpression |
public buildAstAssignmentExpression ( string $image ) : PDepend\Source\AST\ASTAssignmentExpression | ||
$image | string | The assignment operator. |
Résultat | PDepend\Source\AST\ASTAssignmentExpression |
public buildAstBooleanAndExpression ( ) : PDepend\Source\AST\ASTBooleanAndExpression | ||
Résultat | PDepend\Source\AST\ASTBooleanAndExpression |
public buildAstBooleanOrExpression ( ) : PDepend\Source\AST\ASTBooleanOrExpression | ||
Résultat | PDepend\Source\AST\ASTBooleanOrExpression |
public buildAstBreakStatement ( string $image ) : PDepend\Source\AST\ASTBreakStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTBreakStatement |
public buildAstCastExpression ( string $image ) : PDepend\Source\AST\ASTCastExpression | ||
$image | string | The cast-expression image/character. |
Résultat | PDepend\Source\AST\ASTCastExpression |
public buildAstCatchStatement ( string $image ) : PDepend\Source\AST\ASTCatchStatement | ||
$image | string | |
Résultat | PDepend\Source\AST\ASTCatchStatement |
-----
Foo::class;
-----
-----
$object::class;
-----
public buildAstClassFqnPostfix ( ) : PDepend\Source\AST\ASTClassFqnPostfix | ||
Résultat | PDepend\Source\AST\ASTClassFqnPostfix |
public buildAstClassOrInterfaceReference ( string $qualifiedName ) : PDepend\Source\AST\ASTClassOrInterfaceReference | ||
$qualifiedName | string | The qualified name of the referenced type. |
Résultat | PDepend\Source\AST\ASTClassOrInterfaceReference |
public buildAstClassReference ( string $qualifiedName ) : PDepend\Source\AST\ASTClassReference | ||
$qualifiedName | string | The qualified name of the referenced type. |
Résultat | PDepend\Source\AST\ASTClassReference |
public buildAstCloneExpression ( string $image ) : PDepend\Source\AST\ASTCloneExpression | ||
$image | string | The source image of this expression. |
Résultat | PDepend\Source\AST\ASTCloneExpression |
public buildAstClosure ( ) : PDepend\Source\AST\ASTClosure | ||
Résultat | PDepend\Source\AST\ASTClosure |
public buildAstComment ( string $cdata ) : PDepend\Source\AST\ASTComment | ||
$cdata | string | The comment text. |
Résultat | PDepend\Source\AST\ASTComment |
public buildAstCompoundExpression ( ) : PDepend\Source\AST\ASTCompoundExpression | ||
Résultat | PDepend\Source\AST\ASTCompoundExpression |
public buildAstCompoundVariable ( string $image ) : PDepend\Source\AST\ASTCompoundVariable | ||
$image | string | The source image for the compound variable. |
Résultat | PDepend\Source\AST\ASTCompoundVariable |
--------------
$bar = ($foo ? 42 : 23);
--------------
public buildAstConditionalExpression ( ) : PDepend\Source\AST\ASTConditionalExpression | ||
Résultat | PDepend\Source\AST\ASTConditionalExpression |
public buildAstConstant ( string $image ) : PDepend\Source\AST\ASTConstant | ||
$image | string | The source image for the constant. |
Résultat | PDepend\Source\AST\ASTConstant |
class Foo
{
--------
const BAR = 42;
--------
}
Or in a comma separated constant defintion:
class Foo
{
--------
const BAR = 42,
--------
--------------
const BAZ = 'Foobar',
--------------
----------
const FOO = 3.14;
----------
}
public buildAstConstantDeclarator ( string $image ) : PDepend\Source\AST\ASTConstantDeclarator | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTConstantDeclarator |
class Foo
{
------------------------
const FOO = 42, BAR = 23;
------------------------
}
public buildAstConstantDefinition ( string $image ) : PDepend\Source\AST\ASTConstantDefinition | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTConstantDefinition |
---
Foo::BAR;
---
public buildAstConstantPostfix ( string $image ) : PDepend\Source\AST\ASTConstantPostfix | ||
$image | string | The image of this node. |
Résultat | PDepend\Source\AST\ASTConstantPostfix |
public buildAstContinueStatement ( string $image ) : PDepend\Source\AST\ASTContinueStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTContinueStatement |
-------------------------------
declare(encoding='ISO-8859-1');
-------------------------------
-------------------
declare(ticks=42) {
...
}
-
------------------
declare(ticks=42):
...
enddeclare;
-----------
public buildAstDeclareStatement ( ) : PDepend\Source\AST\ASTDeclareStatement | ||
Résultat | PDepend\Source\AST\ASTDeclareStatement |
public buildAstDoWhileStatement ( string $image ) : PDepend\Source\AST\ASTDoWhileStatement | ||
$image | string | The source image of this statement. |
Résultat | PDepend\Source\AST\ASTDoWhileStatement |
public buildAstEchoStatement ( string $image ) : PDepend\Source\AST\ASTEchoStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTEchoStatement |
public buildAstElseIfStatement ( string $image ) : PDepend\Source\AST\ASTElseIfStatement | ||
$image | string | The source image of this statement. |
Résultat | PDepend\Source\AST\ASTElseIfStatement |
public buildAstEvalExpression ( string $image ) : PDepend\Source\AST\ASTEvalExpression | ||
$image | string | The source image of this expression. |
Résultat | PDepend\Source\AST\ASTEvalExpression |
public buildAstExitExpression ( string $image ) : PDepend\Source\AST\ASTExitExpression | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTExitExpression |
public buildAstExpression ( string $image = null ) : PDepend\Source\AST\ASTExpression | ||
$image | string | |
Résultat | PDepend\Source\AST\ASTExpression |
public buildAstFieldDeclaration ( ) : PDepend\Source\AST\ASTFieldDeclaration | ||
Résultat | PDepend\Source\AST\ASTFieldDeclaration |
public buildAstFinallyStatement ( ) : PDepend\Source\AST\ASTFinallyStatement | ||
Résultat | PDepend\Source\AST\ASTFinallyStatement |
------------------------
for ($x = 0, $y = 23, $z = 42; $x < $y; ++$x) }
------------------------
public buildAstForInit ( ) : PDepend\Source\AST\ASTForInit | ||
Résultat | PDepend\Source\AST\ASTForInit |
public buildAstForStatement ( string $image ) : PDepend\Source\AST\ASTForStatement | ||
$image | string | The source image of this statement. |
Résultat | PDepend\Source\AST\ASTForStatement |
-------------------------------
for ($x = 0, $y = 23, $z = 42; $x < $y; ++$x, $y = $x + 1, $z = $x + 2) }
-------------------------------
public buildAstForUpdate ( ) : PDepend\Source\AST\ASTForUpdate | ||
Résultat | PDepend\Source\AST\ASTForUpdate |
public buildAstForeachStatement ( string $image ) : PDepend\Source\AST\ASTForeachStatement | ||
$image | string | The source image of this statement. |
Résultat | PDepend\Source\AST\ASTForeachStatement |
public buildAstFormalParameter ( ) : PDepend\Source\AST\ASTFormalParameter | ||
Résultat | PDepend\Source\AST\ASTFormalParameter |
public buildAstFormalParameters ( ) : PDepend\Source\AST\ASTFormalParameters | ||
Résultat | PDepend\Source\AST\ASTFormalParameters |
-------
foo($bar);
-------
--------
$foo($bar);
--------
public buildAstFunctionPostfix ( string $image ) : PDepend\Source\AST\ASTFunctionPostfix | ||
$image | string | The image of this node. |
Résultat | PDepend\Source\AST\ASTFunctionPostfix |
public buildAstGlobalStatement ( ) : PDepend\Source\AST\ASTGlobalStatement | ||
Résultat | PDepend\Source\AST\ASTGlobalStatement |
public buildAstGotoStatement ( string $image ) : PDepend\Source\AST\ASTGotoStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTGotoStatement |
public buildAstHeredoc ( ) : PDepend\Source\AST\ASTHeredoc | ||
Résultat | PDepend\Source\AST\ASTHeredoc |
public buildAstIdentifier ( string $image ) : PDepend\Source\AST\ASTIdentifier | ||
$image | string | The image of this identifier. |
Résultat | PDepend\Source\AST\ASTIdentifier |
public buildAstIfStatement ( string $image ) : PDepend\Source\AST\ASTIfStatement | ||
$image | string | The source image of this statement. |
Résultat | PDepend\Source\AST\ASTIfStatement |
public buildAstIncludeExpression ( ) : PDepend\Source\AST\ASTIncludeExpression | ||
Résultat | PDepend\Source\AST\ASTIncludeExpression |
public buildAstInstanceOfExpression ( string $image ) : PDepend\Source\AST\ASTInstanceOfExpression | ||
$image | string | The source image of this expression. |
Résultat | PDepend\Source\AST\ASTInstanceOfExpression |
-----------
if (isset($foo)) {
-----------
}
-----------------------
if (isset($foo, $bar, $baz)) {
-----------------------
}
public buildAstIssetExpression ( ) : PDepend\Source\AST\ASTIssetExpression | ||
Résultat | PDepend\Source\AST\ASTIssetExpression |
public buildAstLabelStatement ( string $image ) : PDepend\Source\AST\ASTLabelStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTLabelStatement |
public buildAstListExpression ( string $image ) : PDepend\Source\AST\ASTListExpression | ||
$image | string | The source image of this expression. |
Résultat | PDepend\Source\AST\ASTListExpression |
public buildAstLiteral ( string $image ) : PDepend\Source\AST\ASTLiteral | ||
$image | string | The source image for the literal node. |
Résultat | PDepend\Source\AST\ASTLiteral |
public buildAstLogicalAndExpression ( ) : PDepend\Source\AST\ASTLogicalAndExpression | ||
Résultat | PDepend\Source\AST\ASTLogicalAndExpression |
public buildAstLogicalOrExpression ( ) : PDepend\Source\AST\ASTLogicalOrExpression | ||
Résultat | PDepend\Source\AST\ASTLogicalOrExpression |
public buildAstLogicalXorExpression ( ) : PDepend\Source\AST\ASTLogicalXorExpression | ||
Résultat | PDepend\Source\AST\ASTLogicalXorExpression |
--------
Foo::bar();
--------
---------
Foo::$bar();
---------
---------
$obj->bar();
---------
----------
$obj->$bar();
----------
public buildAstMemberPrimaryPrefix ( string $image ) : PDepend\Source\AST\ASTMemberPrimaryPrefix | ||
$image | string | The source image of this expression. |
Résultat | PDepend\Source\AST\ASTMemberPrimaryPrefix |
---------
Foo::bar($baz);
---------
----------
Foo::$bar($baz);
----------
public buildAstMethodPostfix ( string $image ) : PDepend\Source\AST\ASTMethodPostfix | ||
$image | string | The image of this node. |
Résultat | PDepend\Source\AST\ASTMethodPostfix |
public buildAstParentReference ( PDepend\Source\AST\ASTClassOrInterfaceReference $reference ) : PDepend\Source\AST\ASTParentReference | ||
$reference | PDepend\Source\AST\ASTClassOrInterfaceReference | The type instance that reference the concrete target of parent. |
Résultat | PDepend\Source\AST\ASTParentReference |
public buildAstPostfixExpression ( string $image ) : PDepend\Source\AST\ASTPostfixExpression | ||
$image | string | The postfix-expression image/character. |
Résultat | PDepend\Source\AST\ASTPostfixExpression |
public buildAstPreDecrementExpression ( ) : PDepend\Source\AST\ASTPreDecrementExpression | ||
Résultat | PDepend\Source\AST\ASTPreDecrementExpression |
public buildAstPreIncrementExpression ( ) : PDepend\Source\AST\ASTPreIncrementExpression | ||
Résultat | PDepend\Source\AST\ASTPreIncrementExpression |
-------------
print "qafoo";
-------------
public buildAstPrintExpression ( ) : PDepend\Source\AST\ASTConditionalExpression | ||
Résultat | PDepend\Source\AST\ASTConditionalExpression |
----
Foo::$bar;
----
---
$object->bar;
---
public buildAstPropertyPostfix ( string $image ) : PDepend\Source\AST\ASTPropertyPostfix | ||
$image | string | The image of this node. |
Résultat | PDepend\Source\AST\ASTPropertyPostfix |
public buildAstRequireExpression ( ) : PDepend\Source\AST\ASTRequireExpression | ||
Résultat | PDepend\Source\AST\ASTRequireExpression |
public buildAstReturnStatement ( string $image ) : PDepend\Source\AST\ASTReturnStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTReturnStatement |
public buildAstScalarType ( string $image ) : PDepend\Source\AST\ASTScalarType | ||
$image | string | The source image for the primitive type. |
Résultat | PDepend\Source\AST\ASTScalarType |
public buildAstScope ( ) : PDepend\Source\AST\ASTScope | ||
Résultat | PDepend\Source\AST\ASTScope |
public buildAstScopeStatement ( ) : PDepend\Source\AST\ASTScopeStatement | ||
Résultat | PDepend\Source\AST\ASTScopeStatement |
public buildAstSelfReference ( PDepend\Source\AST\AbstractASTClassOrInterface $type ) : PDepend\Source\AST\ASTSelfReference | ||
$type | PDepend\Source\AST\AbstractASTClassOrInterface | |
Résultat | PDepend\Source\AST\ASTSelfReference |
public buildAstShiftLeftExpression ( ) : PDepend\Source\AST\ASTShiftLeftExpression | ||
Résultat | PDepend\Source\AST\ASTShiftLeftExpression |
public buildAstShiftRightExpression ( ) : PDepend\Source\AST\ASTShiftRightExpression | ||
Résultat | PDepend\Source\AST\ASTShiftRightExpression |
public buildAstStatement ( ) : PDepend\Source\AST\ASTStatement | ||
Résultat | PDepend\Source\AST\ASTStatement |
public buildAstStaticReference ( PDepend\Source\AST\AbstractASTClassOrInterface $owner ) : PDepend\Source\AST\ASTStaticReference | ||
$owner | PDepend\Source\AST\AbstractASTClassOrInterface | |
Résultat | PDepend\Source\AST\ASTStaticReference |
public buildAstStaticVariableDeclaration ( string $image ) : PDepend\Source\AST\ASTStaticVariableDeclaration | ||
$image | string | The source image for the statuc declaration. |
Résultat | PDepend\Source\AST\ASTStaticVariableDeclaration |
$string = "Manuel $Pichler <{$email}>";
\PDepend\Source\AST\ASTString
|-- ASTLiteral - "Manuel ")
|-- ASTVariable - $Pichler
|-- ASTLiteral - " <"
|-- ASTCompoundExpression - {...}
| |-- ASTVariable - $email
|-- ASTLiteral - ">"
public buildAstString ( ) : PDepend\Source\AST\ASTString | ||
Résultat | PDepend\Source\AST\ASTString |
--------
$string{$index}
--------
public buildAstStringIndexExpression ( ) : PDepend\Source\AST\ASTStringIndexExpression | ||
Résultat | PDepend\Source\AST\ASTStringIndexExpression |
public buildAstSwitchLabel ( string $image ) : PDepend\Source\AST\ASTSwitchLabel | ||
$image | string | The source image of this label. |
Résultat | PDepend\Source\AST\ASTSwitchLabel |
public buildAstSwitchStatement ( ) : PDepend\Source\AST\ASTSwitchStatement | ||
Résultat | PDepend\Source\AST\ASTSwitchStatement |
public buildAstThrowStatement ( string $image ) : PDepend\Source\AST\ASTThrowStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTThrowStatement |
public buildAstTraitAdaptation ( ) : PDepend\Source\AST\ASTTraitAdaptation | ||
Résultat | PDepend\Source\AST\ASTTraitAdaptation |
public buildAstTraitAdaptationAlias ( string $image ) : PDepend\Source\AST\ASTTraitAdaptationAlias | ||
$image | string | The trait method name. |
Résultat | PDepend\Source\AST\ASTTraitAdaptationAlias |
public buildAstTraitAdaptationPrecedence ( string $image ) : PDepend\Source\AST\ASTTraitAdaptationPrecedence | ||
$image | string | The trait method name. |
Résultat | PDepend\Source\AST\ASTTraitAdaptationPrecedence |
public buildAstTraitReference ( string $qualifiedName ) : PDepend\Source\AST\ASTTraitReference | ||
$qualifiedName | string | The full qualified trait name. |
Résultat | PDepend\Source\AST\ASTTraitReference |
public buildAstTraitUseStatement ( ) : PDepend\Source\AST\ASTTraitUseStatement | ||
Résultat | PDepend\Source\AST\ASTTraitUseStatement |
public buildAstTryStatement ( string $image ) : PDepend\Source\AST\ASTTryStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTTryStatement |
public buildAstTypeArray ( ) : PDepend\Source\AST\ASTTypeArray | ||
Résultat | PDepend\Source\AST\ASTTypeArray |
public buildAstTypeCallable ( ) : PDepend\Source\AST\ASTTypeCallable | ||
Résultat | PDepend\Source\AST\ASTTypeCallable |
public buildAstUnaryExpression ( string $image ) : PDepend\Source\AST\ASTUnaryExpression | ||
$image | string | The unary expression image/character. |
Résultat | PDepend\Source\AST\ASTUnaryExpression |
public buildAstUnsetStatement ( ) : PDepend\Source\AST\ASTUnsetStatement | ||
Résultat | PDepend\Source\AST\ASTUnsetStatement |
public buildAstVariable ( string $image ) : PDepend\Source\AST\ASTVariable | ||
$image | string | The source image for the variable. |
Résultat | PDepend\Source\AST\ASTVariable |
public buildAstVariableDeclarator ( string $image ) : PDepend\Source\AST\ASTVariableDeclarator | ||
$image | string | The source image for the variable declarator. |
Résultat | PDepend\Source\AST\ASTVariableDeclarator |
public buildAstVariableVariable ( string $image ) : PDepend\Source\AST\ASTVariableVariable | ||
$image | string | The source image for the variable variable. |
Résultat | PDepend\Source\AST\ASTVariableVariable |
public buildAstWhileStatement ( string $image ) : PDepend\Source\AST\ASTWhileStatement | ||
$image | string | The source image of this statement. |
Résultat | PDepend\Source\AST\ASTWhileStatement |
public buildAstYieldStatement ( string $image ) : PDepend\Source\AST\ASTYieldStatement | ||
$image | string | The source code image for this node. |
Résultat | PDepend\Source\AST\ASTYieldStatement |
$builder->buildClass('php::depend::Parser');
To determine the correct class, this method implements the following
algorithm.
public buildClass ( string $name ) : PDepend\Source\AST\ASTClass | ||
$name | string | The class name. |
Résultat | PDepend\Source\AST\ASTClass | The created class object. |
$builder->buildClass('php::depend::Parser');
To determine the correct class, this method implements the following
algorithm.
protected buildClassInternal ( string $qualifiedName ) : PDepend\Source\AST\ASTClass | ||
$qualifiedName | string | |
Résultat | PDepend\Source\AST\ASTClass |
public buildFunction ( string $name ) : PDepend\Source\AST\ASTFunction | ||
$name | string | The function name. |
Résultat | PDepend\Source\AST\ASTFunction |
$builder->buildInterface('php::depend::Parser');
To determine the correct interface, this method implements the following
algorithm.
public buildInterface ( string $name ) : PDepend\Source\AST\ASTInterface | ||
$name | string | The interface name. |
Résultat | PDepend\Source\AST\ASTInterface |
$builder->buildInterface('php::depend::Parser');
To determine the correct interface, this method implements the following
algorithm.
protected buildInterfaceInternal ( string $qualifiedName ) : PDepend\Source\AST\ASTInterface | ||
$qualifiedName | string | |
Résultat | PDepend\Source\AST\ASTInterface |
public buildMethod ( string $name ) : PDepend\Source\AST\ASTMethod | ||
$name | string | |
Résultat | PDepend\Source\AST\ASTMethod |
public buildNamespace ( string $name ) : PDepend\Source\AST\ASTNamespace | ||
$name | string | The package name. |
Résultat | PDepend\Source\AST\ASTNamespace |
public buildTrait ( string $qualifiedName ) : PDepend\Source\AST\ASTTrait | ||
$qualifiedName | string | The full qualified trait name. |
Résultat | PDepend\Source\AST\ASTTrait |
$builder->buildTrait('php::depend::Parser');
To determine the correct trait, this method implements the following
algorithm.
protected buildTraitInternal ( string $qualifiedName ) : PDepend\Source\AST\ASTTrait | ||
$qualifiedName | string | |
Résultat | PDepend\Source\AST\ASTTrait |
protected checkBuilderState ( boolean $internal = false ) : void | ||
$internal | boolean | The new internal flag value. |
Résultat | void |
$namespaceName = $this->extractPackageName('foo\bar\foobar');
var_dump($namespaceName);
Results in:
string(8) "foo\bar"
$namespaceName = $this->extractPackageName('foobar');
var_dump($namespaceName);
Results in:
string(6) "+global"
protected extractNamespaceName ( string $qualifiedName ) : string | ||
$qualifiedName | string | The qualified PHP 5.3 class identifier. |
Résultat | string |
$typeName = $this->extractTypeName('foo\bar\foobar');
var_dump($typeName);
Results in:
string(6) "foobar"
protected extractTypeName ( string $qualifiedName ) : string | ||
$qualifiedName | string | The qualified PHP 5.3 type identifier. |
Résultat | string |
protected findInterface ( string $qualifiedName ) : PDepend\Source\AST\ASTInterface | ||
$qualifiedName | string | |
Résultat | PDepend\Source\AST\ASTInterface |
public getClassOrInterface ( string $qualifiedName ) : PDepend\Source\AST\AbstractASTClassOrInterface | ||
$qualifiedName | string | |
Résultat | PDepend\Source\AST\AbstractASTClassOrInterface |
public getInterface ( string $qualifiedName ) : PDepend\Source\AST\ASTInterface | ||
$qualifiedName | string | |
Résultat | PDepend\Source\AST\ASTInterface |
public getIterator ( ) : PDepend\Source\AST\ASTArtifactList | ||
Résultat | PDepend\Source\AST\ASTArtifactList |
public getNamespaces ( ) : PDepend\Source\AST\ASTNamespace[] | ||
Résultat | PDepend\Source\AST\ASTNamespace[] |
public restoreClass ( PDepend\Source\AST\ASTClass $class ) : void | ||
$class | PDepend\Source\AST\ASTClass | |
Résultat | void |
public restoreFunction ( PDepend\Source\AST\ASTFunction $function ) : void | ||
$function | PDepend\Source\AST\ASTFunction | |
Résultat | void |
public restoreInterface ( PDepend\Source\AST\ASTInterface $interface ) : void | ||
$interface | PDepend\Source\AST\ASTInterface | |
Résultat | void |
public restoreTrait ( PDepend\Source\AST\ASTTrait $trait ) : void | ||
$trait | PDepend\Source\AST\ASTTrait | |
Résultat | void |
public setCache ( PDepend\Util\Cache\CacheDriver $cache ) : |
||
$cache | PDepend\Util\Cache\CacheDriver | |
Résultat |
protected CacheDriver,PDepend\Util\Cache $cache | ||
Résultat | PDepend\Util\Cache\CacheDriver |
protected BuilderContext,PDepend\Source\Builder $context | ||
Résultat | PDepend\Source\Builder\BuilderContext |
protected ASTCompilationUnit,PDepend\Source\AST $defaultCompilationUnit | ||
Résultat |