Class Opens


  • public class Opens
    extends Object
    One opens directive of a Module attribute.
    • Constructor Detail

      • Opens

        public Opens​(ConstPool constPool,
                     int opensIndex,
                     int opensFlags,
                     List<Integer> opensTo)
        Creates an opens entry from its raw constant pool indices.
        Parameters:
        constPool - the pool used to resolve the package names
        opensIndex - the pool index of the opened package
        opensFlags - the ACC_ flags on the directive
        opensTo - pool indices of the modules the package is opened to, empty for unqualified
    • Method Detail

      • getOpensIndex

        public int getOpensIndex()
        Returns:
        the opens index
      • getOpensFlags

        public int getOpensFlags()
        Returns:
        the opens flags
      • getOpensTo

        public List<Integer> getOpensTo()
        Returns:
        the opens to