@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");
},