Class MemberSubstitution.Target.ForDynamicInvocation

java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Target.ForDynamicInvocation
All Implemented Interfaces:
MemberSubstitution.Target
Enclosing interface:
MemberSubstitution.Target

public static class MemberSubstitution.Target.ForDynamicInvocation extends Object implements MemberSubstitution.Target
Represents an invokedynamic instruction that is the target of a substitution.
  • Field Details

    • methodType

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

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

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

    • ForDynamicInvocation

      protected ForDynamicInvocation(JavaConstant.MethodType methodType, String name, 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 Details

    • 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 String getName()
      Returns the (internal) name of the target.
      Specified by:
      getName in interface MemberSubstitution.Target
      Returns:
      The name of the target.
    • getArguments

      public 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.