Interface GuardsNode

All Superinterfaces:
ASTNode, ContractNode

public interface GuardsNode extends ContractNode
This represents a guards clause that specifies a guard for a function. The function may be a system or ordinary function. It has the syntax guards <bool-expr> ;.
  • Method Details

    • getExpression

      ExpressionNode getExpression()
      Gets the boolean expression of this guard.
    • copy

      GuardsNode 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 ContractNode
      deep copy of this node