net.sourceforge.pmd.lang.symboltable
Class AbstractNameDeclaration

java.lang.Object
  extended by net.sourceforge.pmd.lang.symboltable.AbstractNameDeclaration
All Implemented Interfaces:
NameDeclaration

public abstract class AbstractNameDeclaration
extends Object
implements NameDeclaration

Base class for all name declarations.


Field Summary
protected  ScopedNode node
           
 
Constructor Summary
AbstractNameDeclaration(ScopedNode node)
           
 
Method Summary
 String getImage()
          Gets the image of the node.
 String getName()
          Gets the name of the declaration, such as the variable name.
 ScopedNode getNode()
          Gets the node which manifests the declaration.
 Scope getScope()
          Gets the scope in which this name has been declared.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected ScopedNode node
Constructor Detail

AbstractNameDeclaration

public AbstractNameDeclaration(ScopedNode node)
Method Detail

getNode

public ScopedNode getNode()
Description copied from interface: NameDeclaration
Gets the node which manifests the declaration.

Specified by:
getNode in interface NameDeclaration
Returns:
the node

getImage

public String getImage()
Description copied from interface: NameDeclaration
Gets the image of the node. This is usually the name of the declaration such as the variable name.

Specified by:
getImage in interface NameDeclaration
Returns:
the image
See Also:
NameDeclaration.getName()

getScope

public Scope getScope()
Description copied from interface: NameDeclaration
Gets the scope in which this name has been declared.

Specified by:
getScope in interface NameDeclaration
Returns:
the scope

getName

public String getName()
Description copied from interface: NameDeclaration
Gets the name of the declaration, such as the variable name.

Specified by:
getName in interface NameDeclaration
Returns:


Copyright © 2002-2015 InfoEther. All Rights Reserved.