Public Member Functions | |
astNode (int bci, scopeNode *scope) | |
int | this_bci () |
scopeNode * | this_scope () |
virtual bool | is_message () |
virtual bool | is_statement () |
virtual bool | is_code () |
virtual bool | is_cascade () |
virtual void | add (astNode *statement) |
void | top_level_print (prettyPrintStream *output) |
virtual bool | print (prettyPrintStream *output) |
virtual int | width (prettyPrintStream *output) |
virtual symbolOop | selector () |
virtual bool | should_wrap_argument (astNode *argument) |
virtual astNode * | argument_at (int i) |
Protected Attributes | |
int | bci |
scopeNode * | scope |
Definition at line 35 of file prettyPrinter.cpp.
astNode::astNode | ( | int | bci, | |
scopeNode * | scope | |||
) | [inline] |
virtual void astNode::add | ( | astNode * | statement | ) | [inline, virtual] |
Reimplemented in listNode, codeNode, and inlinedBlockNode.
Definition at line 52 of file prettyPrinter.cpp.
References fatal.
Referenced by MethodPrettyPrinter::method_return(), and MethodPrettyPrinter::pop().
virtual astNode* astNode::argument_at | ( | int | i | ) | [inline, virtual] |
Definition at line 63 of file prettyPrinter.cpp.
virtual bool astNode::is_cascade | ( | ) | [inline, virtual] |
Reimplemented in cascadeSendNode.
Definition at line 50 of file prettyPrinter.cpp.
Referenced by messageNode::print(), messageNode::set_receiver(), messageNode::valid_receiver(), and messageNode::width().
virtual bool astNode::is_code | ( | ) | [inline, virtual] |
Reimplemented in codeNode.
Definition at line 49 of file prettyPrinter.cpp.
Referenced by MethodPrettyPrinter::method_return(), MethodPrettyPrinter::nonlocal_return(), and MethodPrettyPrinter::pop().
virtual bool astNode::is_message | ( | ) | [inline, virtual] |
Reimplemented in messageNode.
Definition at line 47 of file prettyPrinter.cpp.
Referenced by MethodPrettyPrinter::pop(), should_wrap(), and messageNode::should_wrap_argument().
virtual bool astNode::is_statement | ( | ) | [inline, virtual] |
Reimplemented in statement.
Definition at line 48 of file prettyPrinter.cpp.
Referenced by codeNode::last_statement().
bool astNode::print | ( | prettyPrintStream * | output | ) | [virtual] |
Reimplemented in leafNode, nameValueNode, listNode, codeNode, inlinedBlockNode, statement, methodNode, blockNode, assignment, messageNode, symbolNode, doubleByteArrayNode, byteArrayNode, objArrayNode, dllNode, and cascadeSendNode.
Definition at line 515 of file prettyPrinter.cpp.
References bci, scope, and scopeNode::sd().
Referenced by cascadeSendNode::print(), dllNode::print(), objArrayNode::print(), byteArrayNode::print(), doubleByteArrayNode::print(), symbolNode::print(), messageNode::print(), assignment::print(), blockNode::print(), methodNode::print(), statement::print(), listNode::print(), leafNode::print(), prettyPrinter::print_body(), messageNode::print_receiver(), print_selector_with_arguments(), messageNode::real_print(), and top_level_print().
Here is the call graph for this function:
virtual symbolOop astNode::selector | ( | ) | [inline, virtual] |
Definition at line 61 of file prettyPrinter.cpp.
Referenced by messageNode::is_binary(), messageNode::is_keyword(), messageNode::is_unary(), messageNode::messageNode(), scopeNode::print_method_header(), messageNode::real_print(), and messageNode::width_send().
int astNode::this_bci | ( | ) | [inline] |
Definition at line 44 of file prettyPrinter.cpp.
References bci.
Referenced by floatNode::floatNode(), heapTempNode::heapTempNode(), PrintWrapper::PrintWrapper(), and stackTempNode::stackTempNode().
scopeNode* astNode::this_scope | ( | ) | [inline] |
Definition at line 45 of file prettyPrinter.cpp.
References scope.
Referenced by PrintWrapper::PrintWrapper().
void astNode::top_level_print | ( | prettyPrintStream * | output | ) |
Definition at line 526 of file prettyPrinter.cpp.
References print(), scopeNode::print_header(), and scope.
Referenced by prettyPrinter::print().
Here is the call graph for this function:
virtual int astNode::width | ( | prettyPrintStream * | output | ) | [inline, virtual] |
Reimplemented in leafNode, nameValueNode, listNode, codeNode, inlinedBlockNode, statement, blockNode, assignment, messageNode, symbolNode, doubleByteArrayNode, byteArrayNode, objArrayNode, dllNode, and cascadeSendNode.
Definition at line 59 of file prettyPrinter.cpp.
References prettyPrintStream::infinity().
Referenced by blockNode::print(), objArrayNode::width(), messageNode::width(), assignment::width(), blockNode::width(), statement::width(), codeNode::width(), listNode::width(), messageNode::width_receiver(), and messageNode::width_send().
Here is the call graph for this function:
int astNode::bci [protected] |
scopeNode* astNode::scope [protected] |
Definition at line 38 of file prettyPrinter.cpp.
Referenced by astNode(), dllNode::dllNode(), floatNode::floatNode(), heapTempNode::heapTempNode(), instVarNode::instVarNode(), objArrayNode::objArrayNode(), paramNode::paramNode(), blockNode::print(), methodNode::print(), print(), stackTempNode::stackTempNode(), this_scope(), top_level_print(), and blockNode::width().