Class Frame


  • public class Frame
    extends java.lang.Object
    A Frame contains information on a method being decompiled, similar to a Frame as defined in 3.6 of the JVM spec.
    Version:
    1.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Frame.LocalVarInfo
      Information about a local variable.
    • Constructor Summary

      Constructors 
      Constructor Description
      Frame​(Code code)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Frame.LocalVarInfo getLocalVar​(int index, java.lang.String defaultType)
      Returns the specified local variable.
      java.lang.String pop()
      Pops a value from this frame.
      void push​(java.lang.String value)
      Pushes a value onto this frame.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • operandStack

        private java.util.Stack<java.lang.String> operandStack
    • Constructor Detail

      • Frame

        public Frame​(Code code)
        Constructor.
        Parameters:
        code - The Code attribute being decompiled.
    • Method Detail

      • getLocalVar

        public Frame.LocalVarInfo getLocalVar​(int index,
                                              java.lang.String defaultType)
        Returns the specified local variable.
        Parameters:
        index - The index of the local variable.
        defaultType - The default type.
        Returns:
        The local variable.
      • pop

        public java.lang.String pop()
        Pops a value from this frame.
        Returns:
        The value.
        See Also:
        push(String)
      • push

        public void push​(java.lang.String value)
        Pushes a value onto this frame.
        Parameters:
        value - The value to push.
        See Also:
        pop()