java.lang.Object
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ExternalDefinition
com.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_name
java.lang.String _name
_parent
IPackage _parent
_packages
java.util.Map _packages
ExternalPackage
public ExternalPackage(java.lang.String name,
IPackage parent)
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