Lines Matching refs:this

244         $this->lexer = new DocLexer;
259 $this->ignoredAnnotationNames = $names;
271 $this->ignoredAnnotationNamespaces = $ignoredAnnotationNamespaces;
283 $this->ignoreNotImportedAnnotations = (boolean) $bool;
297 if ($this->imports) {
301 $this->namespaces[] = $namespace;
315 if ($this->namespaces) {
319 $this->imports = $imports;
331 $this->target = $target;
344 $pos = $this->findInitialTokenPosition($input);
349 $this->context = $context;
351 $this->lexer->setInput(trim(substr($input, $pos), '* /'));
352 $this->lexer->moveNext();
354 return $this->Annotations();
393 if ( ! $this->lexer->isNextToken($token) ) {
394 $this->syntaxError($this->lexer->getLiteral($token));
397 return $this->lexer->moveNext();
412 if ( ! $this->lexer->isNextTokenAny($tokens)) {
413 … $this->syntaxError(implode(' or ', array_map(array($this->lexer, 'getLiteral'), $tokens)));
416 return $this->lexer->moveNext();
432 $token = $this->lexer->lookahead;
436 $message .= ($this->lexer->lookahead === null)
440 if (strlen($this->context)) {
441 $message .= ' in ' . $this->context;
459 if (isset($this->classExists[$fqcn])) {
460 return $this->classExists[$fqcn];
465 return $this->classExists[$fqcn] = true;
469 return $this->classExists[$fqcn] = AnnotationRegistry::loadAnnotationClass($fqcn);
485 self::$metadataParser->setIgnoredAnnotationNames($this->ignoredAnnotationNames);
528 $this->collectAttributeTypeMetadata($metadata, $attribute);
551 $this->collectAttributeTypeMetadata($metadata, $attribute);
641 while (null !== $this->lexer->lookahead) {
642 if (DocLexer::T_AT !== $this->lexer->lookahead['type']) {
643 $this->lexer->moveNext();
648 …if (null !== $this->lexer->token && $this->lexer->lookahead['position'] === $this->lexer->token['p…
649 $this->lexer->moveNext();
655 if ((null === $peek = $this->lexer->glimpse())
657 || $peek['position'] !== $this->lexer->lookahead['position'] + 1) {
658 $this->lexer->moveNext();
662 $this->isNestedAnnotation = false;
663 if (false !== $annot = $this->Annotation()) {
684 $this->match(DocLexer::T_AT);
687 $name = $this->Identifier();
689 if ($this->lexer->isNextToken(DocLexer::T_MINUS)
690 && $this->lexer->nextTokenIsAdjacent()
706 if ($this->namespaces) {
707 foreach ($this->namespaces as $namespace) {
708 if ($this->classExists($namespace.'\\'.$name)) {
714 } elseif (isset($this->imports[$loweredAlias])) {
717 ? $this->imports[$loweredAlias] . substr($name, $pos)
718 : $this->imports[$loweredAlias];
719 } elseif ( ! isset($this->ignoredAnnotationNames[$name])
720 && isset($this->imports['__NAMESPACE__'])
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));
740 if ( ! $this->classExists($name)) {
741 …'The annotation "@%s" in %s does not exist, or could not be auto-loaded.', $name, $this->context));
751 $this->collectAnnotationMetadata($name);
756 … if ($this->ignoreNotImportedAnnotations || isset($this->ignoredAnnotationNames[$originalName])) {
760 …Annotation("%s") to the _class_ doc comment of %s.', $name, $name, $originalName, $this->context));
764 $target = $this->isNestedAnnotation ? Target::TARGET_ANNOTATION : $this->target;
767 $this->isNestedAnnotation = true;
773 … $originalName, $this->context, self::$annotationMetadata[$name]['targets_literal'])
777 $values = $this->MethodCall();
784 …throw AnnotationException::enumeratorError($property, $name, $this->context, $enum['literal'], $va…
799 …throw AnnotationException::requiredError($property, $originalName, $this->context, 'a(n) '.$type['…
815 …throw AnnotationException::attributeTypeError($property, $originalName, $this->context, 'either a(…
820 …throw AnnotationException::attributeTypeError($property, $originalName, $this->context, 'a(n) '.$t…
835 …ot have a property named "%s". Available properties: %s', $originalName, $this->context, $property…
840 … declared on %s does not accept any values, but got %s.', $originalName, $this->context, json_enco…
859 if ( ! $this->lexer->isNextToken(DocLexer::T_OPEN_PARENTHESIS)) {
863 $this->match(DocLexer::T_OPEN_PARENTHESIS);
865 if ( ! $this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
866 $values = $this->Values();
869 $this->match(DocLexer::T_CLOSE_PARENTHESIS);
881 $values = array($this->Value());
883 while ($this->lexer->isNextToken(DocLexer::T_COMMA)) {
884 $this->match(DocLexer::T_COMMA);
886 if ($this->lexer->isNextToken(DocLexer::T_CLOSE_PARENTHESIS)) {
890 $token = $this->lexer->lookahead;
891 $value = $this->Value();
894 $this->syntaxError('Value', $token);
928 $identifier = $this->Identifier();
939 case !empty ($this->namespaces):
940 foreach ($this->namespaces as $ns) {
949 case isset($this->imports[$loweredAlias]):
952 ? $this->imports[$loweredAlias] . substr($className, $pos)
953 : $this->imports[$loweredAlias];
957 if(isset($this->imports['__NAMESPACE__'])) {
958 $ns = $this->imports['__NAMESPACE__'];
980 throw AnnotationException::semanticalErrorConstants($identifier, $this->context);
994 if ( ! $this->lexer->isNextTokenAny(self::$classIdentifiers)) {
995 $this->syntaxError('namespace separator or identifier');
998 $this->lexer->moveNext();
1000 $className = $this->lexer->token['value'];
1002 …while ($this->lexer->lookahead['position'] === ($this->lexer->token['position'] + strlen($this->le…
1003 && $this->lexer->isNextToken(DocLexer::T_NAMESPACE_SEPARATOR)) {
1005 $this->match(DocLexer::T_NAMESPACE_SEPARATOR);
1006 $this->matchAny(self::$classIdentifiers);
1008 $className .= '\\' . $this->lexer->token['value'];
1021 $peek = $this->lexer->glimpse();
1024 return $this->FieldAssignment();
1027 return $this->PlainValue();
1037 if ($this->lexer->isNextToken(DocLexer::T_OPEN_CURLY_BRACES)) {
1038 return $this->Arrayx();
1041 if ($this->lexer->isNextToken(DocLexer::T_AT)) {
1042 return $this->Annotation();
1045 if ($this->lexer->isNextToken(DocLexer::T_IDENTIFIER)) {
1046 return $this->Constant();
1049 switch ($this->lexer->lookahead['type']) {
1051 $this->match(DocLexer::T_STRING);
1052 return $this->lexer->token['value'];
1055 $this->match(DocLexer::T_INTEGER);
1056 return (int)$this->lexer->token['value'];
1059 $this->match(DocLexer::T_FLOAT);
1060 return (float)$this->lexer->token['value'];
1063 $this->match(DocLexer::T_TRUE);
1067 $this->match(DocLexer::T_FALSE);
1071 $this->match(DocLexer::T_NULL);
1075 $this->syntaxError('PlainValue');
1087 $this->match(DocLexer::T_IDENTIFIER);
1088 $fieldName = $this->lexer->token['value'];
1090 $this->match(DocLexer::T_EQUALS);
1094 $item->value = $this->PlainValue();
1108 $this->match(DocLexer::T_OPEN_CURLY_BRACES);
1111 if ($this->lexer->isNextToken(DocLexer::T_CLOSE_CURLY_BRACES)) {
1112 $this->match(DocLexer::T_CLOSE_CURLY_BRACES);
1117 $values[] = $this->ArrayEntry();
1119 while ($this->lexer->isNextToken(DocLexer::T_COMMA)) {
1120 $this->match(DocLexer::T_COMMA);
1123 if ($this->lexer->isNextToken(DocLexer::T_CLOSE_CURLY_BRACES)) {
1127 $values[] = $this->ArrayEntry();
1130 $this->match(DocLexer::T_CLOSE_CURLY_BRACES);
1154 $peek = $this->lexer->glimpse();
1159 if ($this->lexer->isNextToken(DocLexer::T_IDENTIFIER)) {
1160 $key = $this->Constant();
1162 $this->matchAny(array(DocLexer::T_INTEGER, DocLexer::T_STRING));
1163 $key = $this->lexer->token['value'];
1166 $this->matchAny(array(DocLexer::T_EQUALS, DocLexer::T_COLON));
1168 return array($key, $this->PlainValue());
1171 return array(null, $this->Value());
1183 if ($this->ignoreNotImportedAnnotations || isset($this->ignoredAnnotationNames[$name])) {
1187 foreach (array_keys($this->ignoredAnnotationNamespaces) as $ignoredAnnotationNamespace) {