Class StackSnapshot


  • public final class StackSnapshot
    extends Object
    An immutable view of a frame's operand stack, taken at one point in execution.
    • Constructor Detail

      • StackSnapshot

        public StackSnapshot​(ConcreteStack stack)
        Copies every stack entry into an unmodifiable list of value descriptions.
        Parameters:
        stack - the live operand stack
        Throws:
        IllegalArgumentException - if the stack is null
    • Method Detail

      • getValues

        public List<ValueInfo> getValues()
        Returns:
        the values
      • depth

        public int depth()
        Returns:
        the number of entries on the stack