@static

Table of Contents

Overview

The @static tag indicates that a symbol is contained within a parent and can be accessed without instantiating the parent.

Using the @static tag will override a symbol's default scope, with one exception: Symbols in global scope will remain global.

Examples

The following example has the same effect as writing "@function MyNamespace.myFunction" and omitting the @memberof and @static tags:

Using @static in a virtual comment
/** @namespace MyNamespace */

/**
 * @function myFunction
 * @memberof MyNamespace
 * @static
 */

The following example forces a module's inner member to be documented as a static member:

Using @static to override the default scope
/** @module Rollerskate */

/**
 * The 'wheel' variable is documented as Rollerskate.wheel
 * rather than Rollerskate~wheel.
 * @static
 */
var wheel = 1;

© 2011–2017 the contributors to the JSDoc 3 documentation project
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://jsdoc.app/tags-static.html