Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks.usage.transmogrify
Class ScopeIndex  view ScopeIndex download ScopeIndex.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ScopeIndex

public class ScopeIndex
extends java.lang.Object

ScopeIndex provides methods for finding Scopes related to a known Occurrence


Field Summary
private  java.util.Hashtable indexOfFiles
           
 
Constructor Summary
ScopeIndex()
           
 
Method Summary
 void addScope(Scope scope)
          adds a Scope to the ScopeIndex for searching.
 Scope findScope(java.util.Vector scopeList, Occurrence occ)
          returns the most specific Scope to which the specified Occurence belongs from the specified Vector of Scopes.
private  java.util.Vector getFileVector(java.lang.String fileName)
          returns the Vector containing the Scopes related to the specified filename.
 java.util.Hashtable getIndex()
           
 Scope lookup(Occurrence occ)
          returns the most specific Scope to which the specified Occurence belongs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexOfFiles

private java.util.Hashtable indexOfFiles
Constructor Detail

ScopeIndex

public ScopeIndex()
Method Detail

getIndex

public java.util.Hashtable getIndex()

lookup

public Scope lookup(Occurrence occ)
returns the most specific Scope to which the specified Occurence belongs.


findScope

public Scope findScope(java.util.Vector scopeList,
                       Occurrence occ)
returns the most specific Scope to which the specified Occurence belongs from the specified Vector of Scopes.


addScope

public void addScope(Scope scope)
adds a Scope to the ScopeIndex for searching.


getFileVector

private java.util.Vector getFileVector(java.lang.String fileName)
returns the Vector containing the Scopes related to the specified filename.