KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > pmd > ast > ASTPrimitiveType


1 /* Generated By:JJTree: Do not edit this line. ASTPrimitiveType.java */
2
3 package net.sourceforge.pmd.ast;
4
5 public class ASTPrimitiveType extends SimpleJavaNode implements Dimensionable {
6
7     public ASTPrimitiveType(int id) {
8         super(id);
9     }
10
11     public ASTPrimitiveType(JavaParser p, int id) {
12         super(p, id);
13     }
14
15     public boolean isBoolean() {
16         return getImage().equals("boolean");
17     }
18
19     /**
20      * Accept the visitor. *
21      */

22     public Object JavaDoc jjtAccept(JavaParserVisitor visitor, Object JavaDoc data) {
23         return visitor.visit(this, data);
24     }
25
26     private int arrayDepth;
27
28     public void bumpArrayDepth() {
29         arrayDepth++;
30     }
31
32     public int getArrayDepth() {
33         return arrayDepth;
34     }
35
36     public boolean isArray() {
37         return arrayDepth > 0;
38     }
39
40 }
41
Popular Tags