Class StoreArray

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

public final class StoreArray extends Object implements AstNode
Store array element.
Since:
0.1
  • Constructor Details

    • StoreArray

      public StoreArray(org.eolang.jeo.representation.xmir.XmlNode root, Parser parser)
      Constructor.
      Parameters:
      root - Xmir representation of a store array element.
      parser - Parser that will be used to parse the nodes of the store array element.
    • StoreArray

      public StoreArray(List<org.eolang.jeo.representation.xmir.XmlNode> children, Parser parser)
      Constructor.
      Parameters:
      children - Children nodes that represent an array, an index and a value.
      parser - Parser that will be used to parse the children nodes.
    • StoreArray

      public StoreArray(AstNode array, AstNode index, AstNode value)
      Constructor.
      Parameters:
      array - Array
      index - Index
      value - Value
  • 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.