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 BaseScope  view BaseScope download BaseScope.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Definition
      extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Scope
          extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.DefaultScope
              extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.BaseScope
All Implemented Interfaces:
java.lang.Comparable, IDefinition

public class BaseScope
extends DefaultScope

the bottom scope of the scope stack, contains some extra information to make resolution easier.


Field Summary
private  SymbolTable table
           
 
Fields inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Scope
classes, elements, labels, referencesInScope
 
Fields inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Definition
 
Constructor Summary
BaseScope(SymbolTable symbolTable)
           
 
Method Summary
 void addDefinition(IPackage def)
           
 IClass getClassDefinition(java.lang.String name)
           
 IPackage getPackageDefinition(java.lang.String fullyQualifiedName)
          gets the package associated with a fully qualified name
 boolean isBaseScope()
           
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.DefaultScope
getLabelDefinition, getMethodDefinition, getVariableDefinition
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Scope
addDefinition, addDefinition, addDefinition, addDefinition, addReferenceInScope, getClasses, getDefinitions, getReferencesIn, getSymbol
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Definition
addReference, compareTo, getEnclosingClass, getEnclosingPackage, getName, getNumReferences, getOccurrence, getParentScope, getQualifiedName, getReferences, getTreeNode, isSourced, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

private SymbolTable table
Constructor Detail

BaseScope

public BaseScope(SymbolTable symbolTable)
Method Detail

isBaseScope

public boolean isBaseScope()

addDefinition

public void addDefinition(IPackage def)
Overrides:
addDefinition in class DefaultScope

getPackageDefinition

public IPackage getPackageDefinition(java.lang.String fullyQualifiedName)
gets the package associated with a fully qualified name


getClassDefinition

public IClass getClassDefinition(java.lang.String name)
Overrides:
getClassDefinition in class DefaultScope