Class MemberSubstitution.Target.ForMember

    • Field Detail

      • receiverType

        private final TypeDescription receiverType
        The actual (sub-)type on which the member is accessed.
    • Constructor Detail

      • ForMember

        protected ForMember​(TypeDescription receiverType,
                            ByteCodeElement.Member member)
        Creates a new target for a member that is being accessed.
        Parameters:
        receiverType - The actual (sub-)type on which the member is accessed.
        member - The member that is being accessed.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the (internal) name of the target.
        Specified by:
        getName in interface MemberSubstitution.Target
        Returns:
        The name of the target.
      • isStaticDispatch

        public boolean isStaticDispatch()
        Determines if the target is dispatched statically.
        Specified by:
        isStaticDispatch in interface MemberSubstitution.Target
        Returns:
        true if the target is dispatched statically.
      • getReceiverType

        public TypeDescription getReceiverType()
        Returns the actual (sub-)type on which the member is accessed.
        Returns:
        The actual (sub-)type on which the member is accessed.
      • getMember

        public ByteCodeElement.Member getMember()
        Returns the member that is being accessed.
        Returns:
        The member that is being accessed.