public enum ArrayAccess extends Enum<ArrayAccess>
Modifier and Type | Class and Description |
---|---|
protected class |
ArrayAccess.Loader
A stack manipulation for loading an array's value.
|
protected class |
ArrayAccess.Putter
A stack manipulation for storing an array's value.
|
Enum Constant and Description |
---|
BYTE
Access for a
byte - or boolean -typed array. |
CHARACTER
Access for a
char -typed array. |
DOUBLE
Access for a
double -typed array. |
FLOAT
Access for a
float -typed array. |
INTEGER
Access for a
int -typed array. |
LONG
Access for a
long -typed array. |
REFERENCE
Access for a reference-typed array.
|
SHORT
Access for a
short -typed array. |
Modifier and Type | Method and Description |
---|---|
StackManipulation |
forEach(List<? extends StackManipulation> processInstructions)
Applies a stack manipulation to the values of an array.
|
StackManipulation |
load()
Creates a value-loading stack manipulation.
|
static ArrayAccess |
of(TypeDefinition componentType)
Locates an array accessor by the array's component type.
|
StackManipulation |
store()
Creates a value-storing stack manipulation.
|
static ArrayAccess |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArrayAccess[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrayAccess BYTE
byte
- or boolean
-typed array.public static final ArrayAccess SHORT
short
-typed array.public static final ArrayAccess CHARACTER
char
-typed array.public static final ArrayAccess INTEGER
int
-typed array.public static final ArrayAccess LONG
long
-typed array.public static final ArrayAccess FLOAT
float
-typed array.public static final ArrayAccess DOUBLE
double
-typed array.public static final ArrayAccess REFERENCE
public static ArrayAccess[] values()
for (ArrayAccess c : ArrayAccess.values()) System.out.println(c);
public static ArrayAccess valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ArrayAccess of(TypeDefinition componentType)
componentType
- The array's component type.public StackManipulation load()
public StackManipulation store()
public StackManipulation forEach(List<? extends StackManipulation> processInstructions)
processInstructions
- The elements to apply.Copyright © 2014–2019. All rights reserved.