Class BytecodeFrame

java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeFrame
All Implemented Interfaces:
BytecodeEntry, Testable

public final class BytecodeFrame extends Object implements BytecodeEntry
Bytecode frame.
Since:
0.6
  • Constructor Details

    • BytecodeFrame

      public BytecodeFrame(int type, List<Object> locals, List<Object> stack)
      Constructor.
      Parameters:
      type - Frame type.
      locals - Local variables.
      stack - Stack elements.
    • BytecodeFrame

      public BytecodeFrame(int type, int nlocal, Object[] locals, int nstack, Object... stack)
      Constructor.
      Parameters:
      type - Frame type.
      nlocal - Number of local variables.
      locals - Local variables.
      nstack - Number of stack elements.
      stack - Stack elements.
  • Method Details

    • writeTo

      public void writeTo(org.objectweb.asm.MethodVisitor visitor)
      Description copied from interface: BytecodeEntry
      Write instruction to the method visitor.
      Specified by:
      writeTo in interface BytecodeEntry
      Parameters:
      visitor - Method visitor.
    • directives

      public Iterable<org.xembly.Directive> directives(boolean counting)
      Specified by:
      directives in interface BytecodeEntry
    • isLabel

      public boolean isLabel()
      Specified by:
      isLabel in interface BytecodeEntry
    • isOpcode

      public boolean isOpcode()
      Specified by:
      isOpcode in interface BytecodeEntry
    • impact

      public int impact()
      Specified by:
      impact in interface BytecodeEntry
    • testCode

      public String testCode()
      Description copied from interface: Testable
      Generate test Java code.
      Specified by:
      testCode in interface Testable
      Returns:
      Java code.