Class: ClassAttribute

gpf.attributes. ClassAttribute


new ClassAttribute()

Attribute to restrict the use of an attribute to the class level. It throws gpf.Error.ClassAttributeOnly if the target attribute is not used at the class 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