Overview - Common API - Client API - Admin API - Runtime API
DecoratorFactory
An interface for a class that processes a decorator and returns a specific implementation class for that decorator.
Details
- Module common
Method Summary
Name | Returns | Description |
---|---|---|
newDecorator | Decorator |
Process the decorator, and return a specific implementation class for that decorator, or return null if this decorator is not handled by this processor |
Method Details
newDecorator
Decorator newDecorator( ClassDeclaration; Property parent, Object ast )
Process the decorator, and return a specific implementation class for that decorator, or return null if this decorator is not handled by this processor.
Returns
Decorator - The decorator.
Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
parent | ClassDeclaration; Property | Yes | the owner of this property |
ast | Object | Yes | The AST created by the parser |