1 |
| |
2 |
| |
3 |
| package net.sourceforge.pmd.ast; |
4 |
| |
5 |
| public class ASTReferenceType extends SimpleNode implements Dimensionable { |
6 |
0
| public ASTReferenceType(int id) {
|
7 |
0
| super(id);
|
8 |
| } |
9 |
| |
10 |
484
| public ASTReferenceType(JavaParser p, int id) {
|
11 |
484
| super(p, id);
|
12 |
| } |
13 |
| |
14 |
| |
15 |
| |
16 |
1132
| public Object jjtAccept(JavaParserVisitor visitor, Object data) {
|
17 |
1132
| return visitor.visit(this, data);
|
18 |
| } |
19 |
| |
20 |
| private int arrayDepth; |
21 |
| |
22 |
53
| public void bumpArrayDepth() {
|
23 |
53
| arrayDepth++;
|
24 |
| } |
25 |
| |
26 |
33
| public int getArrayDepth() {
|
27 |
33
| return arrayDepth;
|
28 |
| } |
29 |
| |
30 |
0
| public boolean isArray() {
|
31 |
0
| return arrayDepth > 0;
|
32 |
| } |
33 |
| |
34 |
| } |