Class ArgumentDescriptor

java.lang.Object
org.jruby.runtime.ArgumentDescriptor

public class ArgumentDescriptor extends Object
A description of a single argument in a Ruby argument list. Primarily used in Method.to_proc.
  • Field Details

  • Constructor Details

  • Method Details

    • toArrayForm

      @Deprecated(since="10.0") public final RubyArray toArrayForm(Ruby runtime, boolean isLambda)
      Deprecated.
    • toArrayForm

      public final RubyArray toArrayForm(ThreadContext context, boolean isLambda)
    • asParameterName

      public RubyString asParameterName(ThreadContext context)
    • encode

      public static String encode(ArgumentDescriptor[] descriptors)
      Allow JIT/AOT to store argument descriptors as a single String constant.
      Parameters:
      descriptors - the list to convert into a string
      Returns:
      the encoded descriptors
    • decode

      public static ArgumentDescriptor[] decode(Ruby runtime, String encodedDescriptors)
      Translate encoded String of argument descriptors back into an ArgumentDescriptor list
      Parameters:
      runtime - to reify ids back into symbols
      encodedDescriptors - the encoded String
      Returns:
      an array of descriptors