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