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 Summary
All 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
-
getName
public String getName()
Description copied from interface:IMCPackageReturns the package name.An example is "java.lang".
- Specified by:
getNamein interfaceIDescribable- Specified by:
getNamein interfaceIMCPackage- Returns:
- package name
-
getModule
public IMCModule getModule()
- Specified by:
getModulein interfaceIMCPackage- Returns:
- the module in which this package resides, or null if it's in a pre-modules environment
-
isExported
public Boolean isExported()
- Specified by:
isExportedin interfaceIMCPackage- Returns:
trueif the package is exported from it's module, or if it's in a pre modules environment,falseotherwise
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceIDescribable- Returns:
- the description of this object
-
-