Interface AtomicNode

All Superinterfaces:
ASTNode, BlockItemNode, StatementNode

public interface AtomicNode extends StatementNode
An atomic node represents a CIVL-C $atomic statement. Note that $atomic places no restrictions on its statement body.
  • Method Details

    • copy

      AtomicNode 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
    • getBody

      StatementNode getBody()
      The body of the $atomic statement.
      Returns:
      the body of the atomic statement
    • setBody

      void setBody(StatementNode body)
      Sets the body of this atomic statement.
      Parameters:
      body - a statement to become the body