Class AstNode.Sequence

  • All Implemented Interfaces:
    AstNode
    Enclosing interface:
    AstNode

    public static final class AstNode.Sequence
    extends Object
    implements AstNode
    Sequence of nodes.
    Since:
    0.1
    • Constructor Detail

      • Sequence

        public Sequence​(List<AstNode> nodes,
                        AstNode... another)
        Useful constructor.
        Parameters:
        nodes - Nodes
        another - Additional nodes
      • Sequence

        public Sequence​(List<AstNode> nodes)
        Constructor.
        Parameters:
        nodes - Nodes.
    • Method Detail

      • print

        public String print()
        Description copied from interface: AstNode
        Print ast node and all it's children.
        Specified by:
        print in interface AstNode
        Returns:
        String output.
      • toXmir

        public Iterable<org.xembly.Directive> toXmir()
        Description copied from interface: AstNode
        Convert node to XMIR.
        Specified by:
        toXmir in interface AstNode
        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.