Метод |
Описание |
|
configureLinesAndColumns ( integer $startLine, integer $endLine, integer $startColumn, integer $endColumn ) : void |
For better performance we have moved the single setter methods for the
node columns and lines into this configure method. |
|
findChildrenOfType ( string $targetType, array &$results = [] ) : PDepend\Source\AST\ASTNode[] |
This method will search recursive for all child nodes that are an
instance of the given $targetType. The returned value will be
an empty array if no child exists for that. |
|
getChild ( integer $index ) : PDepend\Source\AST\ASTNode |
Returns the node instance for the given index or throws an exception. |
|
getChildren ( ) : PDepend\Source\AST\ASTNode[] |
This method returns all direct children of the actual node. |
|
getComment ( ) : string |
Returns a doc comment for this node or null when no comment was
found. |
|
getEndColumn ( ) : integer |
Returns the end column for this ast node. |
|
getEndLine ( ) : integer |
Returns the end line for this ast node. |
|
getFirstChildOfType ( string $targetType ) : PDepend\Source\AST\ASTNode |
This method will search recursive for the first child node that is an
instance of the given $targetType. The returned value will be
null if no child exists for that. |
|
getImage ( ) : string |
Returns the source image of this ast node. |
|
getParent ( ) : PDepend\Source\AST\ASTNode |
Returns the parent node of this node or null when this node is
the root of a node tree. |
|
getParentsOfType ( string $parentType ) : PDepend\Source\AST\ASTNode[] |
Traverses up the node tree and finds all parent nodes that are instances
of $parentType. |
|
getStartColumn ( ) : integer |
Returns the start column for this ast node. |
|
getStartLine ( ) : integer |
Returns the start line for this ast node. |
|
setComment ( string $comment ) : void |
Sets the raw doc comment for this node. |
|
setParent ( PDepend\Source\AST\ASTNode $node ) : void |
Sets the parent node of this node. |
|