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

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ExternalDefinition
      extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ExternalPackage
All Implemented Interfaces:
IDefinition, IPackage

public class ExternalPackage
extends ExternalDefinition
implements IPackage

PackageDef contains all pertinent information about a package.


Field Summary
(package private)  java.lang.String _name
           
(package private)  java.util.Map _packages
           
(package private)  IPackage _parent
           
 
Constructor Summary
ExternalPackage(java.lang.String name, IPackage parent)
           
 
Method Summary
 void addDefinition(IPackage pkg)
          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
 java.lang.String getName()
          gets the name that identified this particular definition/node
 java.lang.String getQualifiedName()
          gets the fully qualified name of the definition, ie.
 
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ExternalDefinition
addReference, getNumReferences, getReferences, isSourced
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.IDefinition
addReference, getNumReferences, getReferences, isSourced
 

Field Detail

_name

java.lang.String _name

_parent

IPackage _parent

_packages

java.util.Map _packages
Constructor Detail

ExternalPackage

public ExternalPackage(java.lang.String name,
                       IPackage parent)
Method Detail

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

addDefinition

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

Specified by:
addDefinition in interface IPackage

getEnclosingPackage

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

Specified by:
getEnclosingPackage in interface IPackage

getName

public java.lang.String getName()
Description copied from interface: IDefinition
gets the name that identified this particular definition/node

Specified by:
getName in interface IDefinition

getQualifiedName

public java.lang.String getQualifiedName()
Description copied from interface: IDefinition
gets the fully qualified name of the definition, ie. dotted name for classes, or method name with its signature for methods, etc

Specified by:
getQualifiedName in interface IDefinition