private function getAnnotationIndex($name)
    {
        for($i = 0; $i < count($this->annotations); $i++)
        {
            if($this->annotations[$i] instanceof $name)
            {
                return $i;
            }
        }

        return -1;
    }