View Javadoc

    1   /**
    2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
    3    */
    4   package net.sourceforge.pmd.lang.ecmascript.ast;
    5
    6   import org.mozilla.javascript.ast.ReturnStatement;
    7
    8   public class ASTReturnStatement extends AbstractEcmascriptNode<ReturnStatement> {
    9       public ASTReturnStatement(ReturnStatement returnStatement) {
    10  	super(returnStatement);
    11      }
    12
    13      /**
    14       * Accept the visitor.
    15       */
    16      public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
    17  	return visitor.visit(this, data);
    18      }
    19
    20      public boolean hasResult() {
    21  	return node.getReturnValue() != null;
    22      }
    23  }