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
- Only for gpf.attributes.Attribute
- Only for class level (see gpf.attributes.ClassAttribute)
- Only once (see gpf.attributes.UniqueAttribute)
- 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