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 PackageDef  view PackageDef download PackageDef.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.PackageDef
All Implemented Interfaces:
java.lang.Comparable, IDefinition, IPackage

public class PackageDef
extends DefaultScope
implements IPackage

PackageDef contains all pertinent information about a package.


Field Summary
 
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
PackageDef(java.lang.String name, Scope parentScope, SymTabAST node)
           
 
Method Summary
 void addDefinition(IPackage def)
          adds a package definition to its parent's list of package definitions
 IClass getClass(java.lang.String name)
          return class definition associated with this package
 IPackage getEnclosingPackage()
          gets the Package definition of itself
 LabelDef getLabelDefinition(java.lang.String name)
           
 IVariable getVariableDefinition(java.lang.String name)
           
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.DefaultScope
getClassDefinition, getMethodDefinition
 
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, 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
 
Methods inherited from interface com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.IDefinition
addReference, getName, getNumReferences, getQualifiedName, getReferences, isSourced
 

Constructor Detail

PackageDef

public PackageDef(java.lang.String name,
                  Scope parentScope,
                  SymTabAST node)
Method Detail

getLabelDefinition

public LabelDef getLabelDefinition(java.lang.String name)
Overrides:
getLabelDefinition in class DefaultScope

getClass

public IClass getClass(java.lang.String name)
Description copied from interface: IPackage
return class definition associated with this package

Specified by:
getClass in interface IPackage

getEnclosingPackage

public IPackage getEnclosingPackage()
Description copied from interface: IPackage
gets the Package definition of itself

Specified by:
getEnclosingPackage in interface IPackage
Overrides:
getEnclosingPackage in class Definition

getVariableDefinition

public IVariable getVariableDefinition(java.lang.String name)
Overrides:
getVariableDefinition in class DefaultScope

addDefinition

public void addDefinition(IPackage def)
Description copied from interface: IPackage
adds a package definition to its parent's list of package definitions

Specified by:
addDefinition in interface IPackage
Overrides:
addDefinition in class DefaultScope