| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final Signature | |
| public static final Signature | |
| private final int | |
| private final short | |
| private static final int | |
| private static final int | |
| public static final Signature | |
| public static final Signature | |
| public static final Signature | |
| public static final Signature | |
| private final short | |
| public static final Signature | |
| private final short | |
| private final short | |
| private final short | |
| private final Signature. | |
| public static final Signature | |
| public static final Signature | |
| public static final Signature | |
| public static final Signature |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Arity | |
| public int | |
| public int | |
| public void | |
| public void | |
| public static Signature | |
| public long | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public static Signature | |
| public static Signature | |
| public static Signature | |
| public static Signature | |
| public static Signature | |
| public static Signature | |
| public static Signature | |
| public static Signature | |
| public int | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the signature expects multiple argsIf we are yield'ing to this signature should we spread/destructure a Ruby Array? |
| public boolean | |
| public int | |
| public int | |
| public int | Returns: the minimum amount of params expected.The maximum number of parameters supplied which can fulfill a call to this signature. |
| public int | Returns: the minimum amount of params expected.The minimum number of parameters supplied which can fulfill a call to this signature. |
| public int | |
| public int | |
| public int | |
| public int | |
| public Signature. | |
| private static Signature. | |
| public boolean | |
| public String |
| arityValue | back to summary |
|---|---|
| private final int arityValue | |
| ENCODE_KWARGS_SHIFT | back to summary |
|---|---|
| private static final int ENCODE_KWARGS_SHIFT | |
| ENCODE_OPT_SHIFT | back to summary |
|---|---|
| private static final int ENCODE_OPT_SHIFT | |
| ENCODE_POST_SHIFT | back to summary |
|---|---|
| private static final int ENCODE_POST_SHIFT | |
| ENCODE_PRE_SHIFT | back to summary |
|---|---|
| private static final int ENCODE_PRE_SHIFT | |
| ENCODE_REQKWARGS_SHIFT | back to summary |
|---|---|
| private static final int ENCODE_REQKWARGS_SHIFT | |
| ENCODE_REST_SHIFT | back to summary |
|---|---|
| private static final int ENCODE_REST_SHIFT | |
| ENCODE_RESTKWARGS_SHIFT | back to summary |
|---|---|
| private static final int ENCODE_RESTKWARGS_SHIFT | |
| FOUR_ARGUMENTS | back to summary |
|---|---|
| public static final Signature FOUR_ARGUMENTS | |
| FOUR_REQUIRED | back to summary |
|---|---|
| public static final Signature FOUR_REQUIRED | |
| keyRest | back to summary |
|---|---|
| private final int keyRest | |
| kwargs | back to summary |
|---|---|
| private final short kwargs | |
| MAX_ENCODED_ARGS_EXPONENT | back to summary |
|---|---|
| private static final int MAX_ENCODED_ARGS_EXPONENT | |
| MAX_ENCODED_ARGS_MASK | back to summary |
|---|---|
| private static final int MAX_ENCODED_ARGS_MASK | |
| NO_ARGUMENTS | back to summary |
|---|---|
| public static final Signature NO_ARGUMENTS | |
| ONE_ARGUMENT | back to summary |
|---|---|
| public static final Signature ONE_ARGUMENT | |
| ONE_OPT_ARGUMENT | back to summary |
|---|---|
| public static final Signature ONE_OPT_ARGUMENT | |
| ONE_REQUIRED | back to summary |
|---|---|
| public static final Signature ONE_REQUIRED | |
| opt | back to summary |
|---|---|
| private final short opt | |
| OPTIONAL | back to summary |
|---|---|
| public static final Signature OPTIONAL | |
| post | back to summary |
|---|---|
| private final short post | |
| pre | back to summary |
|---|---|
| private final short pre | |
| requiredKwargs | back to summary |
|---|---|
| private final short requiredKwargs | |
| rest | back to summary |
|---|---|
| private final Signature. | |
| THREE_ARGUMENTS | back to summary |
|---|---|
| public static final Signature THREE_ARGUMENTS | |
| THREE_REQUIRED | back to summary |
|---|---|
| public static final Signature THREE_REQUIRED | |
| TWO_ARGUMENTS | back to summary |
|---|---|
| public static final Signature TWO_ARGUMENTS | |
| TWO_REQUIRED | back to summary |
|---|---|
| public static final Signature TWO_REQUIRED | |
| Signature | back to summary |
|---|---|
| public Signature(int pre, int opt, int post, Signature. | |
| arity | back to summary |
|---|---|
| public Arity arity()
Deprecated
| |
| arityValue | back to summary |
|---|---|
| public int arityValue() | |
| calculateArityValue | back to summary |
|---|---|
| public int calculateArityValue() Best attempt at breaking the code of arity values! We figure out how many fixed/required parameters must be supplied. Then we figure out if we need to mark the value as optional. Optional is indicated by multiplying -1 * (fixed + 1). Keyword args optional and rest values can indicate this optional condition but only if no required keyword arguments are present. | |
| checkArity | back to summary |
|---|---|
| public void checkArity(Ruby runtime, IRubyObject[] args)
Deprecated since 10.0.
| |
| checkArity | back to summary |
|---|---|
| public void checkArity(ThreadContext context, IRubyObject[] args) | |
| decode | back to summary |
|---|---|
| public static Signature decode(long l) | |
| encode | back to summary |
|---|---|
| public long encode() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| from | back to summary |
|---|---|
| public static Signature from(Arity arity)
Deprecated
| |
| from | back to summary |
|---|---|
| public static Signature from(int pre, int opt, int post, int kwargs, int requiredKwargs, Signature. | |
| from | back to summary |
|---|---|
| public static Signature from(ArgsNode args) | |
| from | back to summary |
|---|---|
| public static Signature from(IterNode iter) | |
| from | back to summary |
|---|---|
| public static Signature from(ForNode iter) | |
| from | back to summary |
|---|---|
| public static Signature from(PreExeNode iter) | |
| from | back to summary |
|---|---|
| public static Signature from(PostExeNode iter) | |
| fromArityValue | back to summary |
|---|---|
| public static Signature fromArityValue(int arityValue) | |
| getRequiredKeywordForArityCount | back to summary |
|---|---|
| public int getRequiredKeywordForArityCount() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasKwargs | back to summary |
|---|---|
| public boolean hasKwargs() | |
| hasRest | back to summary |
|---|---|
| public boolean hasRest() | |
| isFixed | back to summary |
|---|---|
| public boolean isFixed() Are there an exact (fixed) number of parameters to this signature? | |
| isNoArguments | back to summary |
|---|---|
| public boolean isNoArguments() Is this a signature with a no arguments of any kind? | |
| isOneArgument | back to summary |
|---|---|
| public boolean isOneArgument() Is this a signature with a single fixed argument and NO keyword arguments? | |
| isSpreadable | back to summary |
|---|---|
| public boolean isSpreadable() If we are yield'ing to this signature should we spread/destructure a Ruby Array?
| |
| isTwoArguments | back to summary |
|---|---|
| public boolean isTwoArguments() Is this a signature with a two fixed arguments and NO keyword arguments? | |
| keyRest | back to summary |
|---|---|
| public int keyRest() | |
| kwargs | back to summary |
|---|---|
| public int kwargs() Total number of keyword argument parameters.
| |
| max | back to summary |
|---|---|
| public int max() The maximum number of parameters supplied which can fulfill a call to this signature. This method is for calculating the public-facing arity value.
| |
| min | back to summary |
|---|---|
| public int min() The minimum number of parameters supplied which can fulfill a call to this signature. This method is for calculating the public-facing arity value.
| |
| opt | back to summary |
|---|---|
| public int opt() | |
| post | back to summary |
|---|---|
| public int post() | |
| pre | back to summary |
|---|---|
| public int pre() | |
| required | back to summary |
|---|---|
| public int required() | |
| rest | back to summary |
|---|---|
| public Signature. | |
| restFromArg | back to summary |
|---|---|
| private static Signature. | |
| restKwargs | back to summary |
|---|---|
| public boolean restKwargs() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Signature. | |
| public static final Signature. | |
| public static final Signature. | |
| public static final Signature. | |
| private static final Signature. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Signature. | |
| public static Signature. | |
| public static Signature. |
| ANON | back to summary |
|---|---|
| public static final Signature. | |
| NONE | back to summary |
|---|---|
| public static final Signature. | |
| NORM | back to summary |
|---|---|
| public static final Signature. | |
| STAR | back to summary |
|---|---|
| public static final Signature. | |
| VALUES | back to summary |
|---|---|
| private static final Signature. | |
| Rest | back to summary |
|---|---|
| private Rest() | |
| fromOrdinal | back to summary |
|---|---|
| public static Signature. | |
| valueOf | back to summary |
|---|---|
| public static Signature. | |
| values | back to summary |
|---|---|
| public static Signature. | |