PHP 클래스 PDepend\Source\AST\ASTAnonymousClass

부터: 2.3
상속: extends PDepend\Source\AST\ASTClass, implements PDepend\Source\AST\ASTNode
파일 보기 프로젝트 열기: pdepend/pdepend

보호된 프로퍼티들

프로퍼티 타입 설명
$metadata string Metadata for this node instance, serialized in a string. This string contains the start, end line, and the start, end column and the node image in a colon separated string.
$parent PDepend\Source\AST\ASTNode The parent node of this node or null when this node is the root of a node tree.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
getMetadata ( integer $index ) : mixed Returns the value that was stored under the given index.
getMetadataInteger ( integer $index ) : integer Returns an integer value that was stored under the given index.
getMetadataSize ( ) : integer Returns the total number of the used property bag.
setMetadata ( integer $index, mixed $value ) : void Stores the given value under the given index in an internal storage container.
setMetadataInteger ( integer $index, integer $value ) : void Stores an integer value under the given index in the internally used data string.

메소드 상세

__sleep() 공개 메소드

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.
부터: 0.10.0
public __sleep ( ) : array
리턴 array

__wakeup() 공개 메소드

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.
public __wakeup ( ) : void
리턴 void

accept() 공개 메소드

public accept ( PDepend\Source\ASTVisitor\ASTVisitor $visitor, mixed $data = null ) : void
$visitor PDepend\Source\ASTVisitor\ASTVisitor
$data mixed
리턴 void

configureLinesAndColumns() 공개 메소드

For better performance we have moved the single setter methods for the node columns and lines into this configure method.
부터: 0.9.10
public configureLinesAndColumns ( integer $startLine, integer $endLine, integer $startColumn, integer $endColumn ) : void
$startLine integer
$endLine integer
$startColumn integer
$endColumn integer
리턴 void

getEndColumn() 공개 메소드

Returns the end column for this ast node.
public getEndColumn ( ) : integer
리턴 integer

getEndLine() 공개 메소드

Returns the end line for this ast node.
public getEndLine ( ) : integer
리턴 integer

getImage() 공개 메소드

Returns the source image of this ast node.
public getImage ( ) : string
리턴 string

getMetadata() 보호된 메소드

Returns the value that was stored under the given index.
부터: 0.10.4
protected getMetadata ( integer $index ) : mixed
$index integer
리턴 mixed

getMetadataInteger() 보호된 메소드

Returns an integer value that was stored under the given index.
부터: 0.10.4
protected getMetadataInteger ( integer $index ) : integer
$index integer
리턴 integer

getMetadataSize() 보호된 메소드

Returns the total number of the used property bag.
부터: 0.10.4
protected getMetadataSize ( ) : integer
리턴 integer

getParent() 공개 메소드

Returns the parent node of this node or null when this node is the root of a node tree.
public getParent ( ) : PDepend\Source\AST\ASTNode
리턴 PDepend\Source\AST\ASTNode

getParentsOfType() 공개 메소드

Traverses up the node tree and finds all parent nodes that are instances of $parentType.
public getParentsOfType ( string $parentType ) : PDepend\Source\AST\ASTNode[]
$parentType string
리턴 PDepend\Source\AST\ASTNode[]

getStartColumn() 공개 메소드

Returns the start column for this ast node.
public getStartColumn ( ) : integer
리턴 integer

getStartLine() 공개 메소드

Returns the start line for this ast node.
public getStartLine ( ) : integer
리턴 integer

isAnonymous() 공개 메소드

Will return true if this class was declared anonymous in an allocation expression.
public isAnonymous ( ) : boolean
리턴 boolean

prependChild() 공개 메소드

This method adds a new child node at the first position of the children.
public prependChild ( PDepend\Source\AST\ASTNode $node ) : void
$node PDepend\Source\AST\ASTNode
리턴 void

setImage() 공개 메소드

public setImage ( string $image ) : void
$image string
리턴 void

setMetadata() 보호된 메소드

Stores the given value under the given index in an internal storage container.
부터: 0.10.4
protected setMetadata ( integer $index, mixed $value ) : void
$index integer
$value mixed
리턴 void

setMetadataInteger() 보호된 메소드

Stores an integer value under the given index in the internally used data string.
부터: 0.10.4
protected setMetadataInteger ( integer $index, integer $value ) : void
$index integer
$value integer
리턴 void

setParent() 공개 메소드

Sets the parent node of this node.
public setParent ( PDepend\Source\AST\ASTNode $node ) : void
$node PDepend\Source\AST\ASTNode
리턴 void

프로퍼티 상세

$metadata 보호되어 있는 프로퍼티

Metadata for this node instance, serialized in a string. This string contains the start, end line, and the start, end column and the node image in a colon separated string.
부터: 0.10.4
protected string $metadata
리턴 string

$parent 보호되어 있는 프로퍼티

The parent node of this node or null when this node is the root of a node tree.
protected ASTNode,PDepend\Source\AST $parent
리턴 PDepend\Source\AST\ASTNode