/**
* Returns the parent of this node or <b>null</b> when no parent node
* exists.
*
* @return \PHPMD\AbstractNode
*/
public function getParent()
{
if (($node = $this->node->getParent()) === null) {
return null;
}
return new ASTNode($node, $this->getFileName());
}