|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| package net.sourceforge.pmd.symboltable; |
|
5 |
| |
|
6 |
| import net.sourceforge.pmd.ast.SimpleNode; |
|
7 |
| |
|
8 |
| public abstract class AbstractNameDeclaration implements NameDeclaration { |
|
9 |
| |
|
10 |
| protected SimpleNode node; |
|
11 |
| |
|
12 |
3930
| public AbstractNameDeclaration(SimpleNode node) {
|
|
13 |
3930
| this.node = node;
|
|
14 |
| } |
|
15 |
| |
|
16 |
122
| public SimpleNode getNode() {
|
|
17 |
122
| return node;
|
|
18 |
| } |
|
19 |
| |
|
20 |
8620
| public String getImage() {
|
|
21 |
8620
| return node.getImage();
|
|
22 |
| } |
|
23 |
| |
|
24 |
35
| public Scope getScope() {
|
|
25 |
35
| return node.getScope();
|
|
26 |
| } |
|
27 |
| } |