@abstract

nene edited this page Aug 9, 2012 · 4 revisions

(Updated for JSDuck 4)

Synopsis:

@abstract

Documents a class or member as abstract.

In class context it means that the class shouldn't be instantiated as not all its members are implemented and without them the class is dysfunctional. The implementation must be provided by a subclass.

In member context it means that the member is not implemented in this class. An abstract member is usually part of abstract class.

Example:

/**
 * Shows the component
 * @abstract
 */
show: function() {
    alert("not implemented");
},
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.