Class AnyMethodrefConstant

    • Field Detail

      • referencedMethod

        public Method referencedMethod
        An extra field optionally pointing to the referenced Method object. This field is typically filled out by the ClassReferenceInitializer.
    • Constructor Detail

      • 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.
        Parameters:
        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.
    • Method Detail

      • referencedMethodAccept

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