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.ArrayLiteral;
7   
8   public class ASTArrayLiteral extends AbstractEcmascriptNode<ArrayLiteral> implements DestructuringNode, TrailingCommaNode {
9       private boolean trailingComma;
10  
11      public ASTArrayLiteral(ArrayLiteral arrayLiteral) {
12  	super(arrayLiteral);
13      }
14  
15      /**
16       * Accept the visitor.
17       */
18      public Object jjtAccept(EcmascriptParserVisitor visitor, Object data) {
19  	return visitor.visit(this, data);
20      }
21  
22      public boolean isDestructuring() {
23  	return node.isDestructuring();
24      }
25  
26      public boolean isTrailingComma() {
27  	return trailingComma;
28      }
29  
30      public void setTrailingComma(boolean trailingComma) {
31  	this.trailingComma = trailingComma;
32      }
33  }