|
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 |
1000
| public ASTResultType(JavaParser p, int id) {
|
|
11 |
1000
| super(p, id);
|
|
12 |
| } |
|
13 |
| |
|
14 |
9
| public boolean returnsArray() {
|
|
15 |
9
| return !isVoid() && ((ASTType) jjtGetChild(0)).isArray();
|
|
16 |
| } |
|
17 |
| |
|
18 |
34
| public boolean isVoid() {
|
|
19 |
34
| return jjtGetNumChildren() == 0;
|
|
20 |
| } |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| |
|
25 |
2419
| public Object jjtAccept(JavaParserVisitor visitor, Object data) {
|
|
26 |
2419
| return visitor.visit(this, data);
|
|
27 |
| } |
|
28 |
| } |