Interface JavaConstant.Simple.Dispatcher.OfDynamicConstantDesc

All Superinterfaces:
JavaConstant.Simple.Dispatcher
Enclosing interface:
JavaConstant.Simple.Dispatcher

@Proxied("java.lang.constant.DynamicConstantDesc") public static interface JavaConstant.Simple.Dispatcher.OfDynamicConstantDesc extends JavaConstant.Simple.Dispatcher
A dispatcher to represent java.lang.constant.DynamicConstantDesc.
  • Method Details

    • ofCanonical

      @IsStatic Object ofCanonical(@Proxied("java.lang.constant.DirectMethodHandleDesc") Object bootstrap, String constantName, @Proxied("java.lang.constant.ClassDesc") Object type, @Proxied("java.lang.constant.ConstantDesc") Object[] argument)
      Resolves a java.lang.constant.DynamicConstantDesc for a canonical description of the constant.
      Parameters:
      bootstrap - A java.lang.constant.DirectMethodHandleDesc describing the boostrap method of the dynamic constant.
      constantName - The constant's name.
      type - A java.lang.constant.ClassDesc describing the constant's type.
      argument - Descriptions of the dynamic constant's arguments.
      Returns:
      A java.lang.constant.DynamicConstantDesc for the supplied arguments.
    • bootstrapArgs

      Object[] bootstrapArgs(Object value)
      Resolves a java.lang.constant.DynamicConstantDesc's arguments.
      Parameters:
      value - The java.lang.constant.DynamicConstantDesc to resolve.
      Returns:
      An array of java.lang.constant.ConstantDesc describing the arguments of the supplied dynamic constant description.
    • constantName

      String constantName(Object value)
      Resolves the dynamic constant description's name.
      Parameters:
      value - The java.lang.constant.DynamicConstantDesc to resolve.
      Returns:
      The dynamic constant description's name.
    • constantType

      Object constantType(Object value)
      Resolves a java.lang.constant.ClassDesc for the dynamic constant's type.
      Parameters:
      value - The java.lang.constant.DynamicConstantDesc to resolve.
      Returns:
      A java.lang.constant.ClassDesc describing the constant's type.
    • bootstrapMethod

      Object bootstrapMethod(Object value)
      Resolves a java.lang.constant.DirectMethodHandleDesc representing the dynamic constant's bootstrap method.
      Parameters:
      value - The java.lang.constant.DynamicConstantDesc to resolve.
      Returns:
      A java.lang.constant.DirectMethodHandleDesc representing the dynamic constant's bootstrap method.