ASTObjectLiteral.java
01 /**
02  * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
03  */
04 package net.sourceforge.pmd.lang.ecmascript.ast;
05 
06 import org.mozilla.javascript.ast.ObjectLiteral;
07 
08 public class ASTObjectLiteral extends AbstractEcmascriptNode<ObjectLiteral> implements DestructuringNode {
09     public ASTObjectLiteral(ObjectLiteral objectLiteral) {
10   super(objectLiteral);
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 ASTObjectProperty getObjectProperty(int index) {
21   return (ASTObjectPropertyjjtGetChild(index);
22     }
23 
24     public boolean isDestructuring() {
25   return node.isDestructuring();
26     }
27 }