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