Class MethodRef


  • public class MethodRef
    extends Object
    The mutable class-index and name-and-type-index pair behind a constant pool method reference.
    • Constructor Detail

      • MethodRef

        public MethodRef​(int classIndex,
                         int nameAndTypeIndex)
        Parameters:
        classIndex - CONSTANT_Class index of the owner
        nameAndTypeIndex - CONSTANT_NameAndType index for the method name and descriptor
    • 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)
        Parameters:
        classIndex - new CONSTANT_Class index for the owner
      • setNameAndTypeIndex

        public void setNameAndTypeIndex​(int nameAndTypeIndex)
        Parameters:
        nameAndTypeIndex - new CONSTANT_NameAndType index