Interface ArrayFactory.ArrayCreator

All Superinterfaces:
StackManipulation
All Known Implementing Classes:
ArrayFactory.ArrayCreator.ForPrimitiveType, ArrayFactory.ArrayCreator.ForReferenceType
Enclosing class:
ArrayFactory

protected static interface ArrayFactory.ArrayCreator extends StackManipulation
An array creator is responsible for providing correct byte code instructions for creating an array and for storing values into it.
  • Field Details

    • ARRAY_CREATION_SIZE_CHANGE

      static final StackManipulation.Size 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.