/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ /* Generated By:JJTree: Do not edit this line. ASTResultType.java */ package net.sourceforge.pmd.lang.java.ast; public class ASTResultType extends AbstractJavaNode { public ASTResultType(int id) { super(id); } public ASTResultType(JavaParser p, int id) { super(p, id); } public boolean returnsArray() { return !isVoid() && ((ASTType) jjtGetChild(0)).isArray(); } public boolean isVoid() { return jjtGetNumChildren() == 0; } /** * Accept the visitor. * */ public Object jjtAccept(JavaParserVisitor visitor, Object data) { return visitor.visit(this, data); } }