/* Generated By:JJTree: Do not edit this line. ASTResultType.java */

package net.sourceforge.pmd.ast;

public class ASTResultType extends SimpleJavaNode {
    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);
    }
}
