Class Exports


  • public class Exports
    extends Object
    Represents an exports entry in the Module attribute.
    • Constructor Detail

      • Exports

        public Exports​(ConstPool constPool,
                       int exportsIndex,
                       int exportsFlags,
                       List<Integer> exportsTo)
        Creates an exports entry over raw constant-pool indices.
        Parameters:
        constPool - pool used to resolve the package names
        exportsIndex - CONSTANT_Package index of the exported package
        exportsFlags - the ACC_ flags on the entry
        exportsTo - CONSTANT_Module indices of the targeted modules, empty when unqualified
    • Method Detail

      • getExportsIndex

        public int getExportsIndex()
        Returns:
        the exports index
      • getExportsFlags

        public int getExportsFlags()
        Returns:
        the exports flags
      • getExportsTo

        public List<Integer> getExportsTo()
        Returns:
        the exports to