View Javadoc

1   /* Generated By:JJTree: Do not edit this line. ASTPrimarySuffix.java */
2   
3   package net.sourceforge.pmd.ast;
4   
5   public class ASTPrimarySuffix extends SimpleNode {
6       public ASTPrimarySuffix(int id) {
7           super(id);
8       }
9   
10      public ASTPrimarySuffix(JavaParser p, int id) {
11          super(p, id);
12      }
13  
14      private boolean isArguments;
15      private boolean isArrayDeference;
16  
17      public void setIsArrayDereference() {
18          isArrayDeference = true;
19      }
20  
21      public boolean isArrayDeference() {
22          return isArrayDeference;
23      }
24  
25      public void setIsArguments() {
26          this.isArguments = true;
27      }
28  
29      public boolean isArguments() {
30          return this.isArguments;
31      }
32  
33      public void dump(String prefix) {
34          if (getImage() == null) {
35              System.out.println(toString(prefix));
36          } else {
37              System.out.println(toString(prefix) + ":" + getImage());
38          }
39          dumpChildren(prefix);
40      }
41  
42  
43      /***
44       * Accept the visitor. *
45       */
46      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
47          return visitor.visit(this, data);
48      }
49  }