Class Provides


  • public class Provides
    extends Object
    One provides entry of a Module attribute - a service interface plus the implementation classes offered for it, held as constant pool indices.
    • Constructor Detail

      • Provides

        public Provides​(ConstPool constPool,
                        int providesWithIndex,
                        List<Integer> providesWithArguments)
        Creates a provides entry.
        Parameters:
        constPool - the pool the indices resolve against
        providesWithIndex - class index of the service interface
        providesWithArguments - class indices of the implementations
    • Method Detail

      • getProvidesWithIndex

        public int getProvidesWithIndex()
        Returns:
        the provides with index
      • getProvidesWithArguments

        public List<Integer> getProvidesWithArguments()
        Returns:
        the provides with arguments