Overview

Namespaces

  • Budovy
  • Kdyby
    • BootstrapFormRenderer
      • DI
      • Latte
  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • Nextras
    • Datagrid
  • None
  • PHP
  • Tester
    • CodeCoverage
    • Runner
      • Output
  • Vodacek
    • Forms
      • Controls
  • WebLoader
    • Filter
    • Nette

Classes

  • Annotation
  • AnnotationsParser
  • ClassType
  • Extension
  • GlobalFunction
  • Method
  • Parameter
  • Property

Interfaces

  • IAnnotation
  • Overview
  • Namespace
  • Class
  • Tree

Class AnnotationsParser

Annotations support for PHP.

Namespace: Nette\Reflection
Author: David Grudl
Annotation
Located at vendor/nette/nette/Nette/Reflection/AnnotationsParser.php
Methods summary
final public
# __construct( )

Static class - cannot be instantiated.

Static class - cannot be instantiated.

public static array
# getAll( Reflector $r )

Returns annotations.

Returns annotations.

Parameters

$r
ReflectionClass|ReflectionMethod|ReflectionProperty

Returns

array
public static string
# expandClassName( string $name, ReflectionClass $reflector )

Expands class name into FQN.

Expands class name into FQN.

Parameters

$name
string
$reflector

Returns

string
fully qualified class name

Throws

Nette\InvalidArgumentException
public static array
# parsePhp( string $code )

Parses PHP file.

Parses PHP file.

Parameters

$code
string

Returns

array
[class => [prop => comment (or 'use' => [alias => class])]
public static
# setCacheStorage( Nette\Caching\IStorage $storage )
public static Nette\Caching\IStorage
# getCacheStorage( )

Returns

Nette\Caching\IStorage
Constants summary
string RE_STRING '\'(?:\\\\.|[^\'\\\\])*\'|"(?:\\\\.|[^"\\\\])*"'
#
string RE_IDENTIFIER '[_a-zA-Z\x7F-\xFF][_a-zA-Z0-9\x7F-\xFF-\\\]*'
#
Properties summary
public static boolean $useReflection
#
public static array $inherited array('description', 'param', 'return')
#
API documentation generated by ApiGen 2.8.0