public abstract class ArrayMetaMethod
extends MetaMethod
Shared meta-method base for array getAt and putAt.
| Modifiers | Name | Description |
|---|---|---|
protected static CachedClass |
INTEGER_CLASS |
Cached Integer class, the index type for array getAt and putAt. |
protected static CachedClass[] |
INTEGER_CLASS_ARR |
One-element parameter list containing INTEGER_CLASS. |
| Fields inherited from class | Fields |
|---|---|
class MetaMethod |
EMPTY_ARRAY |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
getModifiers() |
|
protected static int |
normaliseIndex(int i, int size)Maps a negative index from the end of the array. |
| Methods inherited from class | Name |
|---|---|
class MetaMethod |
checkParameters, clone, doMethodInvoke, equal, equal, getDeclaringClass, getDescriptor, getModifiers, getMopName, getName, getReturnType, getSignature, invoke, isAbstract, isCacheable, isDefault, isMethod, isSame, processDoMethodInvokeException, toString |
class ParameterTypes |
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getPT, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes |
Cached Integer class, the index type for array getAt and putAt.
One-element parameter list containing INTEGER_CLASS.
Maps a negative index from the end of the array. An index that is still negative
after adding size is rejected. A non-negative index is returned unchanged,
even when it is past the end.
i - the requested index, which may be negativesize - the array length added to a negative indexi when i is non-negative, otherwise i + size