Interface ArrayFactory.ArrayCreator
- All Superinterfaces:
StackManipulation
- All Known Implementing Classes:
ArrayFactory.ArrayCreator.ForPrimitiveType
,ArrayFactory.ArrayCreator.ForReferenceType
- Enclosing class:
ArrayFactory
An array creator is responsible for providing correct byte code instructions for creating an array
and for storing values into it.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
An array creator implementation for primitive types.static class
An array creator implementation for reference types.Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
StackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StackManipulation.Size
The creation of an array consumes one slot on the operand stack and adds a new value to it. -
Method Summary
Modifier and TypeMethodDescriptionint
The opcode instruction for storing a value of the component type inside an array.Methods inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
apply, isValid
-
Field Details
-
ARRAY_CREATION_SIZE_CHANGE
The creation of an array consumes one slot on the operand stack and adds a new value to it. Therefore, the operand stack's size is not altered.
-
-
Method Details
-
getStorageOpcode
int getStorageOpcode()The opcode instruction for storing a value of the component type inside an array.- Returns:
- The correct storage opcode for the represented type.
-