类 InterfacesEditor


  • public class InterfacesEditor
    extends java.lang.Object
    This class can add and delete interfaces to and from classes. References to the constant pool must be filled out beforehand.
    • 构造器概要

      构造器 
      构造器 说明
      InterfacesEditor​(ProgramClass targetClass)
      Creates a new InterfacesEditor that will edit interfaces in the given target class.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void addInterface​(int interfaceConstantIndex)
      Adds the specified interface to the target class, if it isn't present yet.
      void deleteInterface​(int interfaceConstantIndex)
      Deletes the given interface from the target class, if it is present.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • InterfacesEditor

        public InterfacesEditor​(ProgramClass targetClass)
        Creates a new InterfacesEditor that will edit interfaces in the given target class.
    • 方法详细资料

      • addInterface

        public void addInterface​(int interfaceConstantIndex)
        Adds the specified interface to the target class, if it isn't present yet.
      • deleteInterface

        public void deleteInterface​(int interfaceConstantIndex)
        Deletes the given interface from the target class, if it is present.