1 /*** 2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html 3 */ 4 package net.sourceforge.pmd.symboltable; 5 6 import net.sourceforge.pmd.ast.SimpleNode; 7 8 public abstract class AbstractNameDeclaration { 9 10 protected SimpleNode node; 11 12 public AbstractNameDeclaration(SimpleNode node) { 13 this.node = node; 14 } 15 16 public Scope getScope() { 17 return node.getScope(); 18 } 19 20 public int getLine() { 21 return node.getBeginLine(); 22 } 23 24 public String getImage() { 25 return node.getImage(); 26 } 27 }