|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclasspathhelper.Package
Class that represents information on the classpath that is aggregated at the Java package level. Packages can span locations and class loaders.
If a location contains a class a.b.c.SomeClass that location
clearly contains the package a.b.c, however it is also considered
to contain packages a and a.b as well (even though
those packages contain only subpackages and no content for this location.
| Constructor Summary | |
protected |
Package(CGClassLoader theClassLoader,
PackageStore theCache,
java.lang.String theName)
Internal constructor typically created by CGClassLoader or
Location objects. |
| Method Summary | |
protected void |
addLocationsFromClassLoader(java.util.Set retVal,
CGClassLoader classLoader,
PackageStore cache)
Adds locations for this package for a specific classloader. |
Package |
findPackage(java.lang.String packageName)
Finds a specific sub package |
ContentDescription[] |
getBlockedContent()
|
ContentDescription[] |
getBlockedContentWithDifferentByteCode()
|
ContentDescription[] |
getContents()
|
Location[] |
getLocations()
|
java.lang.String |
getName()
|
ClassDescription[] |
getNotFoundDependentClasses()
|
Package[] |
getPackages(boolean includeSub)
|
java.lang.String |
getSubName()
|
boolean |
isSubPackage(Package other)
Is other a subpackage of this package. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected Package(CGClassLoader theClassLoader,
PackageStore theCache,
java.lang.String theName)
CGClassLoader or
Location objects.
theClassLoader - The class loader this package is in.theCache - The cache used to find/create sub packages.theName - The fully qualified name of this package.| Method Detail |
public java.lang.String getName()
a.b.c).public java.lang.String getSubName()
a.b.c the subName would be c).public Package[] getPackages(boolean includeSub)
includeSub - Whether or not to include all recursive sub packages
true or just the immediate child packages false.
(e.g. should package a return a.b.c as well
as a.b.
public Package findPackage(java.lang.String packageName)
packageName - The package relative to this package.
null if the subpackage cannot
be found.public ContentDescription[] getContents()
public Location[] getLocations()
public boolean isSubPackage(Package other)
other - The other package.
true if other is a subpackage of this,
otherwise false.public ClassDescription[] getNotFoundDependentClasses()
public ContentDescription[] getBlockedContent()
public ContentDescription[] getBlockedContentWithDifferentByteCode()
public java.lang.String toString()
protected void addLocationsFromClassLoader(java.util.Set retVal,
CGClassLoader classLoader,
PackageStore cache)
retVal - The current set of locations.classLoader - The classloader to load from.cache - The cache used for creating packages.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||