메소드 |
설명 |
|
__sleep ( ) : array |
The magic sleep method will be called by PHP's runtime environment right
before an instance of this class gets serialized. It should return an
array with those property names that should be serialized for this class. |
|
__wakeup ( ) : void |
The magic wakeup method will be called by PHP's runtime environment when
a serialized instance of this class was unserialized. This implementation
of the wakeup method will register this object in the the global class
context. |
|
accept ( PDepend\Source\ASTVisitor\ASTVisitor $visitor, mixed $data = null ) : void |
|
|
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. |
|
getEndColumn ( ) : integer |
Returns the end column for this ast node. |
|
getEndLine ( ) : integer |
Returns the end line for this ast node. |
|
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. |
|
isAnonymous ( ) : boolean |
Will return true if this class was declared anonymous in an
allocation expression. |
|
prependChild ( PDepend\Source\AST\ASTNode $node ) : void |
This method adds a new child node at the first position of the children. |
|
setImage ( string $image ) : void |
|
|
setParent ( PDepend\Source\AST\ASTNode $node ) : void |
Sets the parent node of this node. |
|