Class ArrayConstructor

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

public final class ArrayConstructor extends Object implements AstNode
Array constructor.
Since:
0.1
  • Constructor Details

    • ArrayConstructor

      public ArrayConstructor(org.eolang.jeo.representation.xmir.XmlNode node, Parser parser)
      Constructor.
      Parameters:
      node - Xmir representation of an array constructor.
      parser - Parser that will be used to parse the child nodes of the array constructor.
    • ArrayConstructor

      public ArrayConstructor(AstNode size, String type)
      Constructor.
      Parameters:
      size - Array size
      type - Array type
  • 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.