类 AnyMethodrefConstant

所有已实现的接口:
Serializable, Processable
直接已知子类:
InterfaceMethodrefConstant, MethodrefConstant

public abstract class AnyMethodrefConstant extends RefConstant
This Constant represents a method reference constant in the constant pool.
另请参阅:
  • 字段详细资料

    • referencedMethod

      public Method referencedMethod
      An extra field optionally pointing to the referenced Method object. This field is typically filled out by the ClassReferenceInitializer.
  • 构造器详细资料

    • AnyMethodrefConstant

      public AnyMethodrefConstant()
      Creates an uninitialized AnyMethodrefConstant.
    • AnyMethodrefConstant

      public AnyMethodrefConstant(int u2classIndex, int u2nameAndTypeIndex, Clazz referencedClass, Method referencedMethod)
      Creates a new AnyMethodrefConstant with the given name and type indices.
      参数:
      u2classIndex - the index of the class in the constant pool.
      u2nameAndTypeIndex - the index of the name and type entry in the constant pool.
      referencedClass - the referenced class.
      referencedMethod - the referenced method.
  • 方法详细资料

    • referencedMethodAccept

      public void referencedMethodAccept(MemberVisitor memberVisitor)
      Lets the referenced class method accept the given visitor.
    • referencedMemberAccept

      public void referencedMemberAccept(MemberVisitor memberVisitor)
      从类复制的说明: RefConstant
      Lets the referenced class member accept the given visitor.
      指定者:
      referencedMemberAccept 在类中 RefConstant