#include <prettyPrinter.hpp>
Inheritance diagram for prettyPrintStream:
Public Member Functions | |
bool | in_highlight () |
prettyPrintStream () | |
virtual void | indent ()=0 |
void | inc_indent () |
void | dec_indent () |
int | position () |
virtual void | print (char *str)=0 |
virtual void | print_char (char c)=0 |
virtual void | newline ()=0 |
void | dec_newline () |
void | inc_newline () |
virtual void | space ()=0 |
virtual void | begin_highlight ()=0 |
virtual void | end_highlight ()=0 |
virtual int | width ()=0 |
virtual int | remaining ()=0 |
virtual int | width_of_string (char *str)=0 |
virtual int | width_of_char (char c)=0 |
virtual int | width_of_space ()=0 |
virtual int | infinity ()=0 |
void | print () |
Protected Member Functions | |
void | set_highlight (bool value) |
Protected Attributes | |
int | indentation |
int | pos |
bool | in_hl |
Definition at line 34 of file prettyPrinter.hpp.
prettyPrintStream::prettyPrintStream | ( | ) | [inline] |
Definition at line 44 of file prettyPrinter.hpp.
References indentation, pos, and set_highlight().
Here is the call graph for this function:
virtual void prettyPrintStream::begin_highlight | ( | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream, and vframeStream.
Referenced by PrintWrapper::PrintWrapper().
void prettyPrintStream::dec_indent | ( | ) | [inline] |
Definition at line 52 of file prettyPrinter.hpp.
References indentation.
Referenced by dec_newline(), cascadeSendNode::print(), assignment::print(), blockNode::print(), inlinedBlockNode::print(), and messageNode::real_print().
void prettyPrintStream::dec_newline | ( | ) | [inline] |
Definition at line 59 of file prettyPrinter.hpp.
References dec_indent(), and newline().
Referenced by methodNode::print().
Here is the call graph for this function:
virtual void prettyPrintStream::end_highlight | ( | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream, and vframeStream.
Referenced by PrintWrapper::~PrintWrapper().
bool prettyPrintStream::in_highlight | ( | ) | [inline] |
Definition at line 41 of file prettyPrinter.hpp.
References in_hl.
Referenced by PrintWrapper::PrintWrapper().
void prettyPrintStream::inc_indent | ( | ) | [inline] |
Definition at line 51 of file prettyPrinter.hpp.
References indentation.
Referenced by inc_newline(), and methodNode::print().
void prettyPrintStream::inc_newline | ( | ) | [inline] |
Definition at line 60 of file prettyPrinter.hpp.
References inc_indent(), and newline().
Referenced by cascadeSendNode::print(), assignment::print(), blockNode::print(), inlinedBlockNode::print(), and messageNode::real_print().
Here is the call graph for this function:
virtual void prettyPrintStream::indent | ( | ) | [pure virtual] |
virtual int prettyPrintStream::infinity | ( | ) | [pure virtual] |
virtual void prettyPrintStream::newline | ( | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream, and byteArrayPrettyPrintStream.
Referenced by dec_newline(), inc_newline(), prettyPrinter::print(), blockNode::print(), codeNode::print(), scopeNode::print_frame_header(), and print_selector_with_arguments().
int prettyPrintStream::position | ( | ) | [inline] |
void prettyPrintStream::print | ( | ) | [virtual] |
Implements PrintableResourceObj.
Definition at line 1255 of file prettyPrinter.cpp.
References outputStream::print(), and std.
Referenced by defaultPrettyPrintStream::begin_highlight(), and defaultPrettyPrintStream::end_highlight().
Here is the call graph for this function:
virtual void prettyPrintStream::print | ( | char * | str | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream.
Referenced by cascadeSendNode::print(), dllNode::print(), objArrayNode::print(), byteArrayNode::print(), doubleByteArrayNode::print(), symbolNode::print(), assignment::print(), blockNode::print(), codeNode::print(), statement::print(), inlinedBlockNode::print(), listNode::print(), nameValueNode::print(), leafNode::print(), scopeNode::print_frame_header(), messageNode::print_receiver(), print_selector_with_arguments(), and messageNode::real_print().
virtual void prettyPrintStream::print_char | ( | char | c | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream, and byteArrayPrettyPrintStream.
Referenced by print_selector_with_arguments().
virtual int prettyPrintStream::remaining | ( | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream.
Referenced by assignment::print(), blockNode::print(), inlinedBlockNode::print(), and messageNode::real_print().
void prettyPrintStream::set_highlight | ( | bool | value | ) | [inline, protected] |
Definition at line 39 of file prettyPrinter.hpp.
References in_hl.
Referenced by vframeStream::begin_highlight(), defaultPrettyPrintStream::begin_highlight(), vframeStream::end_highlight(), defaultPrettyPrintStream::end_highlight(), and prettyPrintStream().
virtual void prettyPrintStream::space | ( | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream.
Referenced by dllNode::print(), assignment::print(), blockNode::print(), listNode::print(), and print_selector_with_arguments().
virtual int prettyPrintStream::width | ( | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream.
virtual int prettyPrintStream::width_of_char | ( | char | c | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream.
virtual int prettyPrintStream::width_of_space | ( | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream.
Referenced by blockNode::print(), messageNode::real_width(), assignment::width(), blockNode::width(), listNode::width(), messageNode::width_receiver(), and messageNode::width_send().
virtual int prettyPrintStream::width_of_string | ( | char * | str | ) | [pure virtual] |
Implemented in defaultPrettyPrintStream.
Referenced by dllNode::width(), objArrayNode::width(), byteArrayNode::width(), doubleByteArrayNode::width(), symbolNode::width(), assignment::width(), blockNode::width(), statement::width(), inlinedBlockNode::width(), listNode::width(), nameValueNode::width(), leafNode::width(), messageNode::width_receiver(), and messageNode::width_send().
bool prettyPrintStream::in_hl [protected] |
int prettyPrintStream::indentation [protected] |
Definition at line 36 of file prettyPrinter.hpp.
Referenced by dec_indent(), inc_indent(), defaultPrettyPrintStream::indent(), and prettyPrintStream().
int prettyPrintStream::pos [protected] |
Definition at line 37 of file prettyPrinter.hpp.
Referenced by byteArrayPrettyPrintStream::newline(), defaultPrettyPrintStream::newline(), position(), prettyPrintStream(), byteArrayPrettyPrintStream::print_char(), defaultPrettyPrintStream::print_char(), and defaultPrettyPrintStream::remaining().