Interface RunNode

All Superinterfaces:
ASTNode, BlockItemNode, StatementNode

public interface RunNode extends StatementNode
Represents a CIVL-C $run expression, which has the form $run statement.The statement s can be any single StatementNode or a CompoundStatementNode which is wrapped by a pair of curly braces. The whole expression means that the current process will "spawn" another process to run statement s and SPECIALLY the new process will terminate automatically after reaches the end of s without an explicit $wait for it.
  • Method Details

    • getStatement

      StatementNode getStatement()
      Returns the function call node, which is like removing the $spawn.
      Returns:
      the function call node
    • copy

      RunNode copy()
      Description copied from interface: ASTNode
      Returns a deep copy of this AST node. The node and all of its descendants will be cloned. The cloning does not copy analysis or attribute information.
      Specified by:
      copy in interface ASTNode
      Specified by:
      copy in interface BlockItemNode
      Specified by:
      copy in interface StatementNode
      Returns:
      deep copy of this node