01: package org.acm.seguin.pmd.symboltable;
02:
03: import net.sourceforge.jrefactory.ast.SimpleNode;
04:
05: public abstract class AbstractNameDeclaration {
06:
07: protected SimpleNode node;
08:
09: public AbstractNameDeclaration(SimpleNode node) {
10: this .node = node;
11: }
12:
13: public Scope getScope() {
14: return (Scope) node.getScope();
15: }
16:
17: public int getLine() {
18: return node.getBeginLine();
19: }
20:
21: public String getImage() {
22: return node.getImage();
23: }
24: }
|