Class MemberSubstitution.Target.ForDynamicInvocation

    • Field Detail

      • methodType

        private final JavaConstant.MethodType methodType
        The requested type of the target for the invokedynamic instruction.
      • name

        private final java.lang.String name
        The name that is expected for the bound target.
      • arguments

        private final java.util.List<? extends JavaConstant> arguments
        The constant arguments that are provided to the invokedynamic instruction.
    • Constructor Detail

      • ForDynamicInvocation

        protected ForDynamicInvocation​(JavaConstant.MethodType methodType,
                                       java.lang.String name,
                                       java.util.List<? extends JavaConstant> arguments)
        Creates a new target for an invokedynamic instruction.
        Parameters:
        methodType - The requested type of the target for the invokedynamic instruction.
        name - The name that is expected for the bound target.
        arguments - The constant arguments that are provided to the invokedynamic instruction.
    • Method Detail

      • 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.
      • getMethodType

        public JavaConstant.MethodType getMethodType()
        Returns the requested type of the target for the invokedynamic instruction.
        Returns:
        The requested type of the target for the invokedynamic instruction.
      • 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.
      • getArguments

        public java.util.List<? extends JavaConstant> getArguments()
        Returns the constant arguments that are provided to the invokedynamic instruction.
        Returns:
        The constant arguments that are provided to the invokedynamic instruction.