Interface SizeofNode

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

public interface SizeofNode extends ExpressionNode
Represents a C sizeof(...) expression. The argument can be either an expression or a type name. The interface SizeableNode is used to include both expression and type nodes, so the argument is represented by a node implementing that interface.
  • Method Details

    • getArgument

      SizeableNode getArgument()
      The object that we taking the size of. It is either a type or an expression.
      the argument of the sizeof expression
    • setArgument

      void setArgument(SizeableNode argument)
      Sets the value returned by getArgument().
      argument - the argument
    • copy

      SizeofNode 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