View Javadoc

1   /* Generated By:JJTree: Do not edit this line. ASTName.java */
2   
3   package net.sourceforge.pmd.ast;
4   
5   import net.sourceforge.pmd.symboltable.NameDeclaration;
6   
7   public class ASTName extends SimpleNode {
8       public ASTName(int id) {
9           super(id);
10      }
11  
12      public ASTName(JavaParser p, int id) {
13          super(p, id);
14      }
15  
16      private NameDeclaration nd;
17      public void setNameDeclaration(NameDeclaration nd) {
18          this.nd = nd;
19      }
20      public NameDeclaration getNameDeclaration() {
21          return this.nd;
22      }
23  
24  
25      /***
26       * Accept the visitor. *
27       */
28      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
29          return visitor.visit(this, data);
30      }
31  
32  }