Class Uses


  • public class Uses
    extends Object
    A uses entry of the Module attribute, naming a service interface the module consumes.
    • Constructor Detail

      • Uses

        public Uses​(ConstPool constPool,
                    int usesIndex)
        Creates a uses entry.
        Parameters:
        constPool - the pool the class reference is resolved against
        usesIndex - constant pool index of the service interface class
    • Method Detail

      • getUsesIndex

        public int getUsesIndex()
        Returns:
        the uses index