View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   /* Generated By:JJTree: Do not edit this line. ASTResultType.java */
5   
6   package net.sourceforge.pmd.lang.java.ast;
7   
8   public class ASTResultType extends AbstractJavaNode {
9       public ASTResultType(int id) {
10          super(id);
11      }
12  
13      public ASTResultType(JavaParser p, int id) {
14          super(p, id);
15      }
16  
17      public boolean returnsArray() {
18          return !isVoid() && ((ASTType) jjtGetChild(0)).isArray();
19      }
20  
21      public boolean isVoid() {
22          return jjtGetNumChildren() == 0;
23      }
24  
25      /**
26       * Accept the visitor. *
27       */
28      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
29          return visitor.visit(this, data);
30      }
31  }