classes/Kohana/Annotations.php
static function annotationClass($name)
	{
		if (!AnnotationRegistry::loadAnnotationClass($name)) {
			throw new \Doctrine\Common\Annotations\AnnotationException('Annotation ' . $name . ' - not exists');
		}

		return new $name;
	}
static function annotationClass($name)
	{
		if (!AnnotationRegistry::loadAnnotationClass($name)) {
			throw new \Doctrine\Common\Annotations\AnnotationException('Annotation ' . $name . ' - not exists');
		}

		return new $name;
	}
static function annotationClass ( $ name ) { if ( ! AnnotationRegistry :: loadAnnotationClass ( $ name ) ) { throw new \ Doctrine \ Common \ Annotations \ AnnotationException ( 'Annotation ' . $ name . ' - not exists' ) ; } return new $ name ; }
Get annotation object

@param string $name

@return object
@throws Doctrine\Common\Annotations\AnnotationException
Get annotation object