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