View Javadoc

    1   /**
    2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
    3    */
    4   package net.sourceforge.pmd.lang.java.symboltable;
    5
    6   import net.sourceforge.pmd.lang.java.ast.JavaNode;
    7
    8   public abstract class AbstractNameDeclaration implements NameDeclaration {
    9
    10      protected JavaNode node;
    11
    12      public AbstractNameDeclaration(JavaNode node) {
    13          this.node = node;
    14      }
    15
    16      public JavaNode 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  }