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.ForLoop;
    7
    8   public class ASTForLoop extends AbstractEcmascriptNode<ForLoop> {
    9       public ASTForLoop(ForLoop forLoop) {
    10  	super(forLoop);
    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 EcmascriptNode getInitializer() {
    21  	return (EcmascriptNode) jjtGetChild(0);
    22      }
    23
    24      public EcmascriptNode getCondition() {
    25  	return (EcmascriptNode) jjtGetChild(1);
    26      }
    27
    28      public EcmascriptNode getIncrement() {
    29  	return (EcmascriptNode) jjtGetChild(2);
    30      }
    31
    32      public EcmascriptNode getBody() {
    33  	return (EcmascriptNode) jjtGetChild(3);
    34      }
    35  }