MCPcopy Create free account
hub / github.com/mozilla/rhino / getJsDoc

Method getJsDoc

rhino/src/main/java/org/mozilla/javascript/Node.java:176–182  ·  view source on GitHub ↗

Gets the JsDoc comment string attached to this node. @return the comment string or null if no JsDoc is attached to this node

()

Source from the content-addressed store, hash-verified

174 * @return the comment string or {@code null} if no JsDoc is attached to this node
175 */
176 public String getJsDoc() {
177 Comment comment = getJsDocNode();
178 if (comment != null) {
179 return comment.getValue();
180 }
181 return null;
182 }
183
184 /**
185 * Gets the JsDoc Comment object attached to this node.

Callers 15

jsDocAttachment1Method · 0.80
jsDocAttachment2Method · 0.80
jsDocAttachment3Method · 0.80
jsDocAttachment4Method · 0.80
jsDocAttachment5Method · 0.80
jsDocAttachment6Method · 0.80
jsDocAttachment7Method · 0.80
jsDocAttachment8Method · 0.80
jsDocAttachment9Method · 0.80
jsDocAttachment10Method · 0.80
jsDocAttachment11Method · 0.80
jsDocAttachment12Method · 0.80

Calls 2

getJsDocNodeMethod · 0.95
getValueMethod · 0.95

Tested by 15

jsDocAttachment1Method · 0.64
jsDocAttachment2Method · 0.64
jsDocAttachment3Method · 0.64
jsDocAttachment4Method · 0.64
jsDocAttachment5Method · 0.64
jsDocAttachment6Method · 0.64
jsDocAttachment7Method · 0.64
jsDocAttachment8Method · 0.64
jsDocAttachment9Method · 0.64
jsDocAttachment10Method · 0.64
jsDocAttachment11Method · 0.64
jsDocAttachment12Method · 0.64