Class InterfaceRef


  • public class InterfaceRef
    extends Object
    Represents an Interface Method Reference in the constant pool.
    • Constructor Detail

      • InterfaceRef

        public InterfaceRef​(int classIndex,
                            int nameAndTypeIndex)
        Creates an interface method reference from its two constant-pool indices.
        Parameters:
        classIndex - CONSTANT_Class index of the owning interface
        nameAndTypeIndex - CONSTANT_NameAndType index of the method
    • Method Detail

      • getClassIndex

        public int getClassIndex()
        Returns:
        the class index
      • getNameAndTypeIndex

        public int getNameAndTypeIndex()
        Returns:
        the name and type index
      • setClassIndex

        public void setClassIndex​(int classIndex)
        Repoints this reference at a different owner class.
        Parameters:
        classIndex - the new CONSTANT_Class index