Class LDC_W

All Implemented Interfaces:
Cloneable, ExceptionThrower, IndexedInstruction, PushInstruction, StackProducer, TypedInstruction

public class LDC_W extends LDC
LDC_W - Push item from constant pool (wide index)
Stack: ... -> ..., item.word1, item.word2
  • Constructor Details

    • LDC_W

      public LDC_W(int index)
  • Method Details

    • initFromFile

      protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
      Read needed data (i.e., index) from file.
      Overrides:
      initFromFile in class LDC
      Parameters:
      bytes - input stream
      wide - wide prefix?
      Throws:
      IOException - may be thrown if the implementation needs to read data from the file