View Javadoc

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