Class Add

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

public final class Add extends Object implements AstNode, Typed
Add output node.
Since:
0.1
  • Constructor Details

    • Add

      public Add(org.eolang.jeo.representation.xmir.XmlNode node, Function<org.eolang.jeo.representation.xmir.XmlNode,AstNode> parser)
      Constructor.
      Parameters:
      node - XML node
      parser - Parser
    • Add

      public Add(AstNode left, AstNode right)
      Constructor.
      Parameters:
      left - Left operand
      right - Right operand
  • Method Details

    • 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.
    • opcodes

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

      public org.objectweb.asm.Type type()
      Description copied from interface: Typed
      Node type.
      Specified by:
      type in interface Typed
      Returns:
      Type.