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.ObjectProperty;
7   
8   public class ASTObjectProperty extends AbstractInfixEcmascriptNode<ObjectProperty> {
9       public ASTObjectProperty(ObjectProperty objectProperty) {
10  	super(objectProperty);
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 isGetter() {
21  	return node.isGetter();
22      }
23  
24      public boolean isSetter() {
25  	return node.isSetter();
26      }
27  }