Class StackEntry


  • public class StackEntry
    extends java.lang.Object
    represents the state of the stack or the local variable array.

    This is written out as part of the StackMap attribute

    • Field Detail

      • descriptor

        private final java.lang.String descriptor
      • descriptorIndex

        private final int descriptorIndex
        if this is OBJECT then this holds the const pool index
      • newInstructionLocation

        private final int newInstructionLocation
        if this is an unititialized bytecode then this holds the absolute position of the new instruction that created it
    • Constructor Detail

      • StackEntry

        public StackEntry​(StackEntryType type,
                          java.lang.String descriptor)
      • StackEntry

        public StackEntry​(StackEntryType type,
                          java.lang.String descriptor,
                          int newInstructionLocation)
    • Method Detail

      • getDescriptor

        public java.lang.String getDescriptor()
      • getNewInstructionLocation

        public int getNewInstructionLocation()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isWide

        public boolean isWide()
      • write

        public void write​(java.io.DataOutputStream dstream)
                   throws java.io.IOException
        writes the entry to the stream
        Throws:
        java.io.IOException