Interface IModulePackagesAttribute
- All Superinterfaces:
IClassFileAttribute
- All Known Implementing Classes:
ModulePackagesAttribute
Description of a Module Packages as described in the JVMS9 4.7.26
This interface may be implemented by clients.
- Since:
- 3.14
-
Method Summary
Modifier and TypeMethodDescriptionint[]Answer back the array of package indices.char[][]Answer back the names of packages.intAnswer back the number of packages exported or opened.Methods inherited from interface IClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndexModifier and TypeMethodDescriptionlongAnswer back the attribute length as specified in the JVM specifications.char[]Answer back the attribute name as specified in the JVM specifications.intAnswer back the attribute name index in the constant pool as specified in the JVM specifications.
-
Method Details
-
getPackagesCount
int getPackagesCount()Answer back the number of packages exported or opened.- Returns:
- the number of packages exported or opened
-
getPackageIndices
int[] getPackageIndices()Answer back the array of package indices.- Returns:
- the array of package indices.
-
getPackageNames
char[][] getPackageNames()Answer back the names of packages. Answers an empty collection if none.- Returns:
- the names of packages
-