Generic annotation parser
Expects registration of AnnotationInterface instances. Such instances will be passed annotation content to their initialize() method, which they are then responsible for parsing.
Listen to onCreateAnnotation, and attempt to return an annotation object instance.
If the annotation class or alias is not registered, immediately returns false. Otherwise, resolves the class, clones it, and, if any content is present, calls {@link AnnotationInterface::initialize()} with the content.
Parameters: | EventInterface – |
---|---|
Return type: | false|AnnotationInterface |
Register annotations
Parameters: | string|AnnotationInterface – String class name of an AnnotationInterface implementation, or actual instance |
---|---|
Return type: | GenericAnnotationParser |
Throws : | ExceptionInvalidArgumentException |
Register many annotations at once
Parameters: | array|Traversable – |
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | GenericAnnotationParser |
Checks if the manager has annotations for a class
Parameters: | string – |
---|---|
Return type: | bool |
Alias an annotation name
Parameters: |
|
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | GenericAnnotationParser |
Normalize an alias name
Parameters: | string – |
---|---|
Return type: | string |