Class XmlFrame

java.lang.Object
org.eolang.jeo.representation.xmir.XmlFrame
All Implemented Interfaces:
XmlBytecodeEntry

public final class XmlFrame extends Object implements XmlBytecodeEntry
Xmir representation of bytecode frame.
Since:
0.3
  • Constructor Details

    • XmlFrame

      public XmlFrame(String... lines)
      Constructor.
      Parameters:
      lines - Lines of XML
    • XmlFrame

      public XmlFrame(String xml)
      Constructor.
      Parameters:
      xml - XML
    • XmlFrame

      public XmlFrame(XmlNode node)
      Constructor.
      Parameters:
      node - Xmir node
  • Method Details

    • writeTo

      public void writeTo(BytecodeMethod method)
      Description copied from interface: XmlBytecodeEntry
      Write instruction to the bytecode method.
      Specified by:
      writeTo in interface XmlBytecodeEntry
      Parameters:
      method - Bytecode Method where instruction should be written.
    • type

      public int type()
      Type of frame.
      Returns:
      Type.
    • nlocal

      public int nlocal()
      Number of local variables.
      Returns:
      Number of local variables.
    • locals

      public Object[] locals()
      Local variables.
      Returns:
      Local variables.
    • nstack

      public int nstack()
      Number of stack elements.
      Returns:
      Number of stack elements.
    • stack

      public Object[] stack()
      Stack elements.
      Returns:
      Stack elements.