本文整理匯總了PHP中PHP_Depend_Code_ASTVisitorI類的典型用法代碼示例。如果您正苦於以下問題:PHP PHP_Depend_Code_ASTVisitorI類的具體用法?PHP PHP_Depend_Code_ASTVisitorI怎麽用?PHP PHP_Depend_Code_ASTVisitorI使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了PHP_Depend_Code_ASTVisitorI類的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitMemberPrimaryPrefix($this, $data);
}
示例2: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitParentReference($this, $data);
}
示例3: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitContinueStatement($this, $data);
}
示例4: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitArray($this, $data);
}
示例5: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitEvalExpression($this, $data);
}
示例6: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitPropertyPostfix($this, $data);
}
示例7: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitClassOrInterfaceReference($this, $data);
}
示例8: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitPrimitiveType($this, $data);
}
示例9: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitCompoundVariable($this, $data);
}
示例10: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitFieldDeclaration($this, $data);
}
示例11: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitConstantDeclarator($this, $data);
}
示例12: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.12
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitFormalParameters($this, $data);
}
示例13: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param mixed $data Optional previous calculated data.
*
* @return mixed
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
return $visitor->visitTraitAdaptationAlias($this, $data);
}
示例14: accept
/**
* Accept method of the visitor design pattern. This method will be called
* by a visitor during tree traversal.
*
* @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
* @param array(string=>integer) $data Optional previous calculated data.
*
* @return mixed
* @since 0.9.8
*/
public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
{
$data = $visitor->visitBefore($this, $data);
foreach ($this->nodes as $node) {
$data = $node->accept($visitor, $data);
}
return $visitor->visitAfter($this, $data);
}