View Javadoc

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