Class Root

  • All Implemented Interfaces:
    AstNode, Xmir

    public final class Root
    extends Object
    implements AstNode
    Root node.
    Since:
    0.1
    • Constructor Detail

      • Root

        public Root()
        Constructor.
      • Root

        public Root​(AstNode... children)
        Constructor.
        Parameters:
        children - Children.
      • Root

        public Root​(Collection<AstNode> children)
        Constructor.
        Parameters:
        children - Children.
    • 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.
      • append

        public void append​(AstNode node)
        Append child.
        Parameters:
        node - Child