1 |
| |
2 |
| |
3 |
| package net.sourceforge.pmd.ast; |
4 |
| |
5 |
| import net.sourceforge.pmd.symboltable.NameDeclaration; |
6 |
| |
7 |
| public class ASTName extends SimpleJavaNode { |
8 |
3
| public ASTName(int id) {
|
9 |
3
| super(id);
|
10 |
| } |
11 |
| |
12 |
1882
| public ASTName(JavaParser p, int id) {
|
13 |
1882
| super(p, id);
|
14 |
| } |
15 |
| |
16 |
| private NameDeclaration nd; |
17 |
| |
18 |
1174
| public void setNameDeclaration(NameDeclaration nd) {
|
19 |
1174
| this.nd = nd;
|
20 |
| } |
21 |
| |
22 |
469
| public NameDeclaration getNameDeclaration() {
|
23 |
469
| return this.nd;
|
24 |
| } |
25 |
| |
26 |
| |
27 |
| |
28 |
| |
29 |
| |
30 |
5337
| public Object jjtAccept(JavaParserVisitor visitor, Object data) {
|
31 |
5337
| return visitor.visit(this, data);
|
32 |
| } |
33 |
| |
34 |
| } |