Class If

java.lang.Object
org.eolang.opeo.ast.If
All Implemented Interfaces:
AstNode, Xmir

public final class If extends Object implements AstNode
If ast node.
Since:
0.2
  • Constructor Details

    • If

      public If(org.eolang.jeo.representation.xmir.XmlNode node, Function<org.eolang.jeo.representation.xmir.XmlNode,AstNode> search)
      Constructor.
      Parameters:
      node - XMIR node.
      search - Search function.
    • If

      public If(AstNode first, AstNode second, org.objectweb.asm.Label target)
      Constructor.
      Parameters:
      first - First value.
      second - Second value.
      target - Target label.
    • If

      public If(AstNode first, AstNode second, Label target)
      Constructor.
      Parameters:
      first - First value.
      second - Second value.
      target - Target label.
  • Method Details

    • opcodes

      public List<AstNode> opcodes()
      Description copied from interface: AstNode
      Bytecode instructions.
      Specified by:
      opcodes in interface AstNode
      Returns:
      List of opcodes.
    • toXmir

      public Iterable<org.xembly.Directive> toXmir()
      Description copied from interface: Xmir
      Convert node to XMIR.
      Specified by:
      toXmir in interface Xmir
      Returns:
      XMIR XML.