Decorator (Common API)

Overview - Common API - Client API - Admin API - Runtime API

Decorator

Decorator encapsulates a decorator (annotation) on a class or property.

Details

  • Module common

Method Summary

Name Returns Description
constructor void Create a Decorator
getArguments object[] Returns the arguments for this decorator
getName string Returns the name of a decorator
getParent void Returns the owner of this property

Method Details

new Decorator()

Create a Decorator.

Parameters

Name Type Mandatory Description
parent ClassDeclaration; Property Yes the owner of this property
ast Object Yes The AST created by the parser

getParent

getParent( )

Returns the owner of this property

Parameters

No parameters

getName

string getName( )

Returns the name of a decorator

Returns

string - the name of this decorator

Parameters

No parameters

getArguments

object[] getArguments( )

Returns the arguments for this decorator

Returns

object - the arguments for this decorator or null if it does not have any arguments

Parameters

No parameters

Inherited methods