Package org.openjdk.jmc.common.util
Class MCPackage
- java.lang.Object
- 
- org.openjdk.jmc.common.util.MCPackage
 
- 
- All Implemented Interfaces:
- IDescribable,- IMCPackage
 
 public class MCPackage extends Object implements IMCPackage, IDescribable Base implementation of theIMCPackageinterface.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()IMCModulegetModule()StringgetName()Returns the package name.inthashCode()BooleanisExported()StringtoString()
 
- 
- 
- 
Method Detail- 
getNamepublic String getName() Description copied from interface:IMCPackageReturns the package name.An example is "java.lang". - Specified by:
- getNamein interface- IDescribable
- Specified by:
- getNamein interface- IMCPackage
- Returns:
- package name
 
 - 
getModulepublic IMCModule getModule() - Specified by:
- getModulein interface- IMCPackage
- Returns:
- the module in which this package resides, or null if it's in a pre-modules environment
 
 - 
isExportedpublic Boolean isExported() - Specified by:
- isExportedin interface- IMCPackage
- Returns:
- trueif the package is exported from it's module, or if it's in a pre modules environment,- falseotherwise
 
 - 
getDescriptionpublic String getDescription() - Specified by:
- getDescriptionin interface- IDescribable
- Returns:
- the description of this object
 
 
- 
 
-