public class ArgumentDescriptor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ArgumentDescriptor[] |
ANON_REST |
static ArgumentDescriptor[] |
EMPTY_ARRAY |
RubySymbol |
name
The name of the argument
|
ArgumentType |
type
The type of the argument
|
| Constructor and Description |
|---|
ArgumentDescriptor(ArgumentType type) |
ArgumentDescriptor(ArgumentType type,
RubySymbol name) |
| Modifier and Type | Method and Description |
|---|---|
static ArgumentDescriptor[] |
decode(Ruby runtime,
java.lang.String encodedDescriptors)
Translate encoded String of argument descriptors back into an ArgumentDescriptor list
|
static java.lang.String |
encode(ArgumentDescriptor[] descriptors)
Allow JIT/AOT to store argument descriptors as a single String constant.
|
RubyArray |
toArrayForm(Ruby runtime,
boolean isLambda) |
public final ArgumentType type
public final RubySymbol name
public static final ArgumentDescriptor[] EMPTY_ARRAY
public static final ArgumentDescriptor[] ANON_REST
public ArgumentDescriptor(ArgumentType type, RubySymbol name)
public ArgumentDescriptor(ArgumentType type)
public static java.lang.String encode(ArgumentDescriptor[] descriptors)
descriptors - the list to convert into a stringpublic static ArgumentDescriptor[] decode(Ruby runtime, java.lang.String encodedDescriptors)
runtime - to reify ids back into symbolsencodedDescriptors - the encoded StringCopyright © 2001-2022 JRuby. All Rights Reserved.