Doctrine\Common\Reflection\StaticReflectionParser
Parses a file for namespaces/use/class declarations.
- Author: Karoly Negyesi <karoly@negyesi.net>
Synopsis
class StaticReflectionParser
implements
ReflectionProviderInterface
{
- // members
- protected string $className;
- protected boolean. $classAnnotationOptimize;
- protected boolean $parsed;
- protected string $namespace;
- protected array $useStatements;
- protected array $docComment;
- protected string $parentClassName;
- protected StaticReflectionParser $parentStaticReflectionParser;
- // methods
- public void __construct()
- protected void parse()
- protected void getParentStaticReflectionParser()
- public void getClassName()
- public void getNamespaceName()
- public void getReflectionClass()
- public void getReflectionMethod()
- public void getReflectionProperty()
- public void getUseStatements()
- public string getDocComment()
- public StaticReflectionParser getStaticReflectionParserForDeclaringClass()
Hierarchy
Members
protected
- $classAnnotationOptimize
—
Doctrine\Common\Reflection\boolean.
TRUE if the caller only wants class annotations. - $className
—
string
The name of the class. - $docComment
—
string
The docComment of the class. - $namespace
—
string
The namespace of the class - $parentClassName
—
string
The name of the class this class extends, if any. - $parentStaticReflectionParser
—
\Doctrine\Common\Annotations\StaticReflectionParser
The parent PSR-0 Parser. - $parsed
—
boolean
TRUE when the parser has ran. - $useStatements
—
array
The use statements of this class.
Methods
protected
public
- __construct() — Parses a class residing in a PSR-0 hierarchy.
- getClassName()
- getDocComment() — Get docComment.
- getNamespaceName()
- getReflectionClass() — Get the ReflectionClass equivalent for this file / class.
- getReflectionMethod() — Get the ReflectionMethod equivalent for the method of this file / class.
- getReflectionProperty() — Get the ReflectionProperty equivalent for the method of this file / class.
- getStaticReflectionParserForDeclaringClass() — Get the PSR-0 parser for the declaring class.
- getUseStatements() — Get the use statements from this file.