Package org.mozilla.javascript.ast

Examples of org.mozilla.javascript.ast.Comment


     * Gets the JsDoc comment string attached to this node.
     * @return the comment string or {@code null} if no JsDoc is attached to
     *     this node
     */
    public String getJsDoc() {
        Comment comment = getJsDocNode();
        if (comment != null) {
          return comment.getValue();
        }
        return null;
    }
View Full Code Here


  public AstNode comment(AstNode node, String comment) {
    if (node == null) {
      return null;
    }
    if (comment != null) {
      node.setJsDocNode(new Comment(0, comment.length(), CommentType.JSDOC, comment));
    }
    return node;
  }
View Full Code Here

     * Gets the JsDoc comment string attached to this node.
     * @return the comment string or {@code null} if no JsDoc is attached to
     *     this node
     */
    public String getJsDoc() {
        Comment comment = getJsDocNode();
        if (comment != null) {
          return comment.getValue();
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.mozilla.javascript.ast.Comment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.