Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

jumpNode Class Reference

Jump node. More...

#include <ast.h>

Inheritance diagram for jumpNode::

stmtNode Node breakNode continueNode gotoNode returnNode List of all members.

Public Methods

 jumpNode (NodeType typ, const Coord coord)
 Create a new jump statement. More...

virtual ~jumpNode ()
 Destroy a jumpNode. More...


Detailed Description

Jump node.

This class provides a base class for the statements that jump to another location unconditionally. This includes goto statements, break statements, and continue statements.

The NodeType is determined by the subclass (Goto, Break Continue)


Constructor & Destructor Documentation

jumpNode::jumpNode NodeType    typ,
const Coord    coord
 

Create a new jump statement.

The new jump statement has the given type. This constructor should only be used by the subclasses (gotoNode, breakNode and continueNode).

Parameters:
typ  the type of jump statement (Goto, Break, Continue).
coord  the location of the construct in the source file.

jumpNode::~jumpNode   [virtual]
 

Destroy a jumpNode.

Warning:
Do not use the destructors to delete AST nodes. Instead, rely on the node garbage collector.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 12:06:29 2002 for C-Breeze by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001