net.sourceforge.pmd.lang.java.symboltable
Class LocalScope

java.lang.Object
  extended by net.sourceforge.pmd.lang.symboltable.AbstractScope
      extended by net.sourceforge.pmd.lang.java.symboltable.AbstractJavaScope
          extended by net.sourceforge.pmd.lang.java.symboltable.LocalScope
All Implemented Interfaces:
Scope

public class LocalScope
extends AbstractJavaScope

A LocalScope can have variable declarations and class declarations within it.


Constructor Summary
LocalScope()
           
 
Method Summary
 void addDeclaration(NameDeclaration nameDecl)
           
 NameDeclaration addNameOccurrence(NameOccurrence occurrence)
           
 NameDeclaration findVariableHere(JavaNameOccurrence occurrence)
           
 Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()
           
 String toString()
           
 
Methods inherited from class net.sourceforge.pmd.lang.java.symboltable.AbstractJavaScope
checkForDuplicatedNameDeclaration, contains, glomNames
 
Methods inherited from class net.sourceforge.pmd.lang.symboltable.AbstractScope
getDeclarations, getDeclarations, getEnclosingScope, getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalScope

public LocalScope()
Method Detail

getVariableDeclarations

public Map<VariableNameDeclaration,List<NameOccurrence>> getVariableDeclarations()

addNameOccurrence

public NameDeclaration addNameOccurrence(NameOccurrence occurrence)
Specified by:
addNameOccurrence in interface Scope
Overrides:
addNameOccurrence in class AbstractScope

addDeclaration

public void addDeclaration(NameDeclaration nameDecl)
Specified by:
addDeclaration in interface Scope
Overrides:
addDeclaration in class AbstractJavaScope

findVariableHere

public NameDeclaration findVariableHere(JavaNameOccurrence occurrence)
Specified by:
findVariableHere in class AbstractJavaScope

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2016 InfoEther. All Rights Reserved.