public abstract class AbstractNameDeclaration extends Object implements NameDeclaration
Modifier and Type | Field and Description |
---|---|
protected ScopedNode |
node |
Constructor and Description |
---|
AbstractNameDeclaration(ScopedNode node) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected ScopedNode node
public AbstractNameDeclaration(ScopedNode node)
public ScopedNode getNode()
NameDeclaration
getNode
in interface NameDeclaration
public String getImage()
NameDeclaration
getImage
in interface NameDeclaration
NameDeclaration.getName()
public Scope getScope()
NameDeclaration
getScope
in interface NameDeclaration
public String getName()
NameDeclaration
getName
in interface NameDeclaration
Copyright © 2002–2017 PMD. All rights reserved.