|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> checks >> usage >> [ transmogrify overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify
Class ScopeIndex

java.lang.Objectcom.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
Scopeto which the specifiedOccurencebelongs.
findScope
public Scope findScope(java.util.Vector scopeList, Occurrence occ)
- returns the most specific
Scopeto which the specifiedOccurencebelongs from the specifiedVectorofScopes.
addScope
public void addScope(Scope scope)
- adds a
Scopeto theScopeIndexfor searching.
getFileVector
private java.util.Vector getFileVector(java.lang.String fileName)
- returns the
Vectorcontaining theScopes related to the specified filename.
|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> checks >> usage >> [ transmogrify overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ScopeIndex