Lines Matching refs:name

475      * @param string $name The annotation name
479 private function collectAnnotationMetadata($name) argument
499 $class = new \ReflectionClass($name);
518 foreach (self::$metadataParser->parse($docComment, 'class @' . $name) as $annotation) {
537 $metadata['properties'][$property->name] = $property->name;
546 $attribute->name = $property->name;
555 $context = 'property ' . $class->name . "::\$" . $property->name;
564 $metadata['enum'][$property->name]['value'] = $annotation->value;
565 … $metadata['enum'][$property->name]['literal'] = ( ! empty($annotation->literal))
577 self::$annotationMetadata[$name] = $metadata;
611 $metadata['attribute_types'][$attribute->name]['array_type'] = $arrayType;
623 $metadata['attribute_types'][$attribute->name]['array_type'] = $arrayType;
627 $metadata['attribute_types'][$attribute->name]['type'] = $type;
628 $metadata['attribute_types'][$attribute->name]['value'] = $attribute->type;
629 $metadata['attribute_types'][$attribute->name]['required'] = $attribute->required;
687 $name = $this->Identifier();
698 $originalName = $name;
700 if ('\\' !== $name[0]) {
701 $pos = strpos($name, '\\');
702 $alias = (false === $pos)? $name : substr($name, 0, $pos);
708 if ($this->classExists($namespace.'\\'.$name)) {
709 $name = $namespace.'\\'.$name;
716 $name = (false !== $pos)
717 ? $this->imports[$loweredAlias] . substr($name, $pos)
719 } elseif ( ! isset($this->ignoredAnnotationNames[$name])
721 && $this->classExists($this->imports['__NAMESPACE__'] . '\\' . $name)
723 $name = $this->imports['__NAMESPACE__'].'\\'.$name;
725 } elseif (! isset($this->ignoredAnnotationNames[$name]) && $this->classExists($name)) {
730 if ($this->isIgnoredAnnotation($name)) {
734 …rted. Did you maybe forget to add a "use" statement for this annotation?', $name, $this->context));
738 $name = ltrim($name,'\\');
740 if ( ! $this->classExists($name)) {
741 …'The annotation "@%s" in %s does not exist, or could not be auto-loaded.', $name, $this->context));
750 if ( ! isset(self::$annotationMetadata[$name])) {
751 $this->collectAnnotationMetadata($name);
755 if (self::$annotationMetadata[$name]['is_annotation'] === false) {
760 …ed to add @IgnoreAnnotation("%s") to the _class_ doc comment of %s.', $name, $name, $originalName,…
770 if (0 === (self::$annotationMetadata[$name]['targets'] & $target) && $target) {
773 … $originalName, $this->context, self::$annotationMetadata[$name]['targets_literal'])
779 if (isset(self::$annotationMetadata[$name]['enum'])) {
781 foreach (self::$annotationMetadata[$name]['enum'] as $property => $enum) {
784 …throw AnnotationException::enumeratorError($property, $name, $this->context, $enum['literal'], $va…
790 foreach (self::$annotationMetadata[$name]['attribute_types'] as $property => $type) {
791 if ($property === self::$annotationMetadata[$name]['default_property']
826 if (self::$annotationMetadata[$name]['has_constructor'] === true) {
827 return new $name($values);
830 $instance = new $name();
833 if (!isset(self::$annotationMetadata[$name]['properties'][$property])) {
835 …alName, $this->context, $property, implode(', ', self::$annotationMetadata[$name]['properties'])));
839 if ( ! $property = self::$annotationMetadata[$name]['default_property']) {
902 $values[$value->name] = $value->value;
1093 $item->name = $fieldName;
1177 * @param string $name
1181 private function isIgnoredAnnotation($name) argument
1183 if ($this->ignoreNotImportedAnnotations || isset($this->ignoredAnnotationNames[$name])) {
1190 if (0 === stripos(rtrim($name, '\\') . '\\', $ignoredAnnotationNamespace)) {