Class: MemberAttribute

gpf.attributes. MemberAttribute


new MemberAttribute()

Attribute to restrict the use of an attribute to the member level It throws gpf.Error.MemberAttributeOnly if the target attribute is not used at a member level.

Usage restriction

Since:
  • 0.2.8

Extends

Methods


getClassConstructor()

GET accessor for

Class constructore the attribute was set on

Since:
  • 0.2.8
Inherited From:
Returns:

Class constructore the attribute was set on

Type
function | undefined

getMemberName()

GET accessor for

Class member name the attribute was set on (or undefined if at class level)

Since:
  • 0.2.8
Inherited From:
Returns:

Class member name the attribute was set on (or undefined if at class level)

Type
String | undefined