codeNode Class Reference

Inheritance diagram for codeNode:

Inheritance graph
[legend]
Collaboration diagram for codeNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 codeNode (int bci, scopeNode *scope)
void add (astNode *statement)
bool print (prettyPrintStream *output)
bool is_code ()
statementlast_statement ()
int width (prettyPrintStream *output)

Protected Attributes

GrowableArray< astNode * > * statements

Detailed Description

Definition at line 532 of file prettyPrinter.cpp.


Constructor & Destructor Documentation

codeNode::codeNode ( int  bci,
scopeNode scope 
) [inline]

Definition at line 536 of file prettyPrinter.cpp.

References statements.


Member Function Documentation

void codeNode::add ( astNode statement  )  [inline, virtual]

Reimplemented from astNode.

Reimplemented in inlinedBlockNode.

Definition at line 540 of file prettyPrinter.cpp.

References GrowableArray< E >::push(), and statements.

Here is the call graph for this function:

bool codeNode::is_code (  )  [inline, virtual]

Reimplemented from astNode.

Definition at line 545 of file prettyPrinter.cpp.

statement* codeNode::last_statement (  )  [inline]

Definition at line 547 of file prettyPrinter.cpp.

References assert, GrowableArray< E >::at(), astNode::is_statement(), GenericGrowableArray::length(), and statements.

Here is the call graph for this function:

bool codeNode::print ( prettyPrintStream output  )  [virtual]

Reimplemented from astNode.

Reimplemented in inlinedBlockNode, methodNode, and blockNode.

Definition at line 619 of file prettyPrinter.cpp.

References GrowableArray< E >::at(), GenericGrowableArray::length(), prettyPrintStream::newline(), prettyPrintStream::print(), and statements.

Referenced by blockNode::print(), methodNode::print(), and inlinedBlockNode::print().

Here is the call graph for this function:

int codeNode::width ( prettyPrintStream output  )  [inline, virtual]

Reimplemented from astNode.

Reimplemented in inlinedBlockNode, and blockNode.

Definition at line 555 of file prettyPrinter.cpp.

References GrowableArray< E >::at(), prettyPrintStream::infinity(), GenericGrowableArray::length(), statements, and astNode::width().

Referenced by blockNode::print(), blockNode::width(), and inlinedBlockNode::width().

Here is the call graph for this function:


Member Data Documentation

GrowableArray<astNode*>* codeNode::statements [protected]

Definition at line 534 of file prettyPrinter.cpp.

Referenced by inlinedBlockNode::add(), add(), codeNode(), last_statement(), print(), and width().


The documentation for this class was generated from the following file:
Generated on Mon Oct 9 13:51:31 2006 for Strongtalk VM by  doxygen 1.4.7