Interface SpawnNode

All Superinterfaces:
ASTNode, ExpressionNode, ForLoopInitializerNode, InitializerNode, SizeableNode

public interface SpawnNode extends ExpressionNode
Represents a CIVL-C $spawn expression, which has the form $spawn f(e1,...,en). It is essentially a function call with the keyword $spawn prepended. This is also how it is represented: a spawn node simply wraps a function call node.
  • Method Details

    • getCall

      FunctionCallNode getCall()
      Returns the function call node, which is like removing the $spawn.
      the function call node
    • setCall

      void setCall(FunctionCallNode call)
      Sets the function call node child to the given node.
      call - the function call node
    • copy

      SpawnNode 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 ExpressionNode
      Specified by:
      copy in interface ForLoopInitializerNode
      Specified by:
      copy in interface InitializerNode
      Specified by:
      copy in interface SizeableNode
      deep copy of this node