Class Popped

  • All Implemented Interfaces:
    AstNode, Typed, Xmir

    public final class Popped
    extends Object
    implements AstNode, Typed
    Popped. This node represents a node that is popped from the stack.
    Since:
    0.2
    To do:
    #229:90min Do we need to implement the `Popped` node? The `Popped` node is a node that represents a node that is popped from the stack. Maybe it's better to just silently pop the node from the stack and not represent it in the AST. Let's decide if we need to implement the `Popped` node or not. If we decide to implement it, we need to write tests for it.
    • Constructor Detail

      • Popped

        public Popped​(AstNode node)
        Constructor.
        Parameters:
        node - The popped node.
    • Method Detail

      • opcodes

        public List<AstNode> opcodes()
        Description copied from interface: AstNode
        Bytecode instructions.
        Specified by:
        opcodes in interface AstNode
        Returns:
        List of opcodes.
      • 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.
      • type

        public org.objectweb.asm.Type type()
        Description copied from interface: Typed
        Node type.
        Specified by:
        type in interface Typed
        Returns:
        Type.