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