Package org.jruby.runtime
Class ArgumentDescriptor
java.lang.Object
org.jruby.runtime.ArgumentDescriptor
A description of a single argument in a Ruby argument list. Primarily used in Method.to_proc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArgumentDescriptor[]static final ArgumentDescriptor[]final RubySymbolThe name of the argumentstatic final ArgumentDescriptor[]final ArgumentTypeThe type of the argument -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasParameterName(ThreadContext context) static ArgumentDescriptor[]Translate encoded String of argument descriptors back into an ArgumentDescriptor liststatic Stringencode(ArgumentDescriptor[] descriptors) Allow JIT/AOT to store argument descriptors as a single String constant.final RubyArraytoArrayForm(Ruby runtime, boolean isLambda) Deprecated.final RubyArraytoArrayForm(ThreadContext context, boolean isLambda)
-
Field Details
-
type
The type of the argument -
name
The name of the argument -
EMPTY_ARRAY
-
ANON_REST
-
SYMBOL_PROC
-
-
Constructor Details
-
ArgumentDescriptor
-
ArgumentDescriptor
-
-
Method Details
-
toArrayForm
Deprecated. -
toArrayForm
-
asParameterName
-
encode
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
Translate encoded String of argument descriptors back into an ArgumentDescriptor list- Parameters:
runtime- to reify ids back into symbolsencodedDescriptors- the encoded String- Returns:
- an array of descriptors
-