01: /* Generated By:JJTree: Do not edit this line. ASTResultType.java */
02:
03: package net.sourceforge.pmd.ast;
04:
05: public class ASTResultType extends SimpleJavaNode {
06: public ASTResultType(int id) {
07: super (id);
08: }
09:
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: }
|