01: /**
02: * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
03: */package net.sourceforge.pmd.symboltable;
04:
05: import net.sourceforge.pmd.ast.SimpleNode;
06:
07: public abstract class AbstractNameDeclaration implements
08: NameDeclaration {
09:
10: protected SimpleNode node;
11:
12: public AbstractNameDeclaration(SimpleNode node) {
13: this .node = node;
14: }
15:
16: public SimpleNode getNode() {
17: return node;
18: }
19:
20: public String getImage() {
21: return node.getImage();
22: }
23:
24: public Scope getScope() {
25: return node.getScope();
26: }
27: }
|