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.ArrayComprehensionLoop;
7   
8   public class ASTArrayComprehensionLoop extends AbstractEcmascriptNode<ArrayComprehensionLoop> {
9   
10      public ASTArrayComprehensionLoop(ArrayComprehensionLoop arrayComprehensionLoop) {
11  	super(arrayComprehensionLoop);
12      }
13  
14      /**
15       * Accept the visitor.
16       */
17      public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
18  	return visitor.visit(this, data);
19      }
20  
21      public EcmascriptNode getIterator() {
22  	return (EcmascriptNode) jjtGetChild(0);
23      }
24  
25      public EcmascriptNode getIteratedObject() {
26  	return (EcmascriptNode) jjtGetChild(1);
27      }
28  }