Class Return

  • All Implemented Interfaces:
    AstNode, Xmir

    public final class Return
    extends Object
    implements AstNode
    Return statement.
    Since:
    0.5
    • Constructor Detail

      • Return

        public Return()
        Default constructor.
      • Return

        public Return​(org.eolang.jeo.representation.xmir.XmlNode node,
                      Parser parser)
        Constructor.
        Parameters:
        node - XML node to parse.
        parser - Parser, that is used to parse child nodes.
      • Return

        public Return​(AstNode typed)
        Constructor.
        Parameters:
        typed - Value to return.
    • Method Detail

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