01: /* Generated By:JJTree: Do not edit this line. ASTReferenceType.java */
02:
03: package net.sourceforge.pmd.ast;
04:
05: public class ASTReferenceType extends SimpleJavaTypeNode implements
06: Dimensionable {
07: public ASTReferenceType(int id) {
08: super (id);
09: }
10:
11: public ASTReferenceType(JavaParser p, int id) {
12: super (p, id);
13: }
14:
15: /**
16: * Accept the visitor. *
17: */
18: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
19: return visitor.visit(this , data);
20: }
21:
22: private int arrayDepth;
23:
24: public void bumpArrayDepth() {
25: arrayDepth++;
26: }
27:
28: public int getArrayDepth() {
29: return arrayDepth;
30: }
31:
32: public boolean isArray() {
33: return arrayDepth > 0;
34: }
35:
36: }
|