Interface JavaConstant.Simple.Dispatcher.OfMethodHandleDesc

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

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

    • of

      @IsStatic Object of(@Proxied("java.lang.constant.DirectMethodHandleDesc$Kind") Object kind, @Proxied("java.lang.constant.ClassDesc") Object owner, String name, String descriptor)
      Resolves a java.lang.constant.MethodHandleDesc.
      Parameters:
      kind - The java.lang.constant.DirectMethodHandleDesc$Kind of the resolved method handle description.
      owner - The java.lang.constant.ClassDesc of the resolved method handle description's owner type.
      name - The name of the method handle to resolve.
      descriptor - A descriptor of the lookup type.
      Returns:
      An java.lang.constant.MethodTypeDesc representing the invocation type.
    • invocationType

      Object invocationType(Object value)
      Resolves a java.lang.constant.MethodTypeDesc representing the invocation type of the supplied java.lang.constant.DirectMethodHandleDesc.
      Parameters:
      value - The java.lang.constant.DirectMethodHandleDesc to resolve.
      Returns:
      An java.lang.constant.MethodTypeDesc representing the invocation type.