CodeBlockWithComments Class Reference
class CodeBlockWithComments A very common type of text block in any type of code. More...
#include <codeblockwithcomments.h>
Inheritance diagram for CodeBlockWithComments:

Public Member Functions | |
| CodeBlockWithComments (CodeDocument *doc, const QString &body="", const QString &comment="") | |
| Basic Constructor. | |
| CodeBlockWithComments (HierarchicalCodeBlock *hblock, const QString &body="", const QString &comment="") | |
| virtual | ~CodeBlockWithComments () |
| Empty Destructor. | |
| void | setComment (CodeComment *object) |
| Set the Comment object. | |
| CodeComment * | getComment () |
| Get the Comment object. | |
| virtual QString | toString () |
| void | setOverallIndentationLevel (int level) |
| A utility method that causes the comment and body of the code block to have the same indentation level. | |
| virtual void | saveToXMI (QDomDocument &doc, QDomElement &root) |
| Save the XMI representation of this object. | |
| virtual void | loadFromXMI (QDomElement &root) |
| load params from the appropriate XMI element node. | |
| virtual void | setAttributesFromObject (TextBlock *obj) |
| set the class attributes from a passed object | |
Protected Member Functions | |
| virtual void | setAttributesOnNode (QDomDocument &doc, QDomElement &blockElement) |
| set attributes of the node that represents this class in the XMI document. | |
| virtual void | setAttributesFromNode (QDomElement &element) |
| set the class attributes of this object from the passed element node. | |
Detailed Description
class CodeBlockWithComments A very common type of text block in any type of code.
Definition at line 32 of file codeblockwithcomments.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Basic Constructor.
Definition at line 37 of file codeblockwithcomments.cpp. |
|
|
Empty Destructor.
Definition at line 43 of file codeblockwithcomments.cpp. |
Member Function Documentation
|
|
Set the Comment object.
Definition at line 57 of file codeblockwithcomments.cpp. Referenced by CodeGenObjectWithTextBlocks::getCodeBlockWithComments(). |
|
|
Get the Comment object.
Definition at line 64 of file codeblockwithcomments.cpp. Referenced by CodeGenObjectWithTextBlocks::addOrUpdateTaggedCodeBlockWithComments(), CodeGenObjectWithTextBlocks::getCodeBlockWithComments(), setAttributesFromNode(), setAttributesFromObject(), setAttributesOnNode(), CodeMethodBlock::toString(), toString(), and CPPHeaderCodeDocument::updateContent(). |
|
|
Reimplemented from TextBlock. Reimplemented in CodeMethodBlock. Definition at line 148 of file codeblockwithcomments.cpp. References TextBlock::formatMultiLineText(), getComment(), TextBlock::getIndentationString(), TextBlock::getText(), TextBlock::getWriteOutText(), and TextBlock::toString(). |
|
|
A utility method that causes the comment and body of the code block to have the same indentation level.
Definition at line 168 of file codeblockwithcomments.cpp. References TextBlock::setIndentationLevel(). Referenced by CodeGenObjectWithTextBlocks::addOrUpdateTaggedCodeBlockWithComments(), and CodeGenObjectWithTextBlocks::getCodeBlockWithComments(). |
|
||||||||||||
|
Save the XMI representation of this object.
Reimplemented from CodeBlock. Reimplemented in CodeClassFieldDeclarationBlock, and OwnedHierarchicalCodeBlock. Definition at line 74 of file codeblockwithcomments.cpp. References setAttributesOnNode(). |
|
|
load params from the appropriate XMI element node.
Reimplemented from CodeBlock. Reimplemented in CodeClassFieldDeclarationBlock, and OwnedHierarchicalCodeBlock. Definition at line 111 of file codeblockwithcomments.cpp. References setAttributesFromNode(). Referenced by RubyClassifierCodeDocument::loadChildTextBlocksFromNode(), JavaClassifierCodeDocument::loadChildTextBlocksFromNode(), JavaANTCodeDocument::loadChildTextBlocksFromNode(), CPPHeaderCodeDocument::loadChildTextBlocksFromNode(), and CodeGenObjectWithTextBlocks::loadChildTextBlocksFromNode(). |
|
|
set the class attributes from a passed object
Reimplemented from CodeBlock. Reimplemented in CodeClassFieldDeclarationBlock, CodeMethodBlock, and OwnedHierarchicalCodeBlock. Definition at line 97 of file codeblockwithcomments.cpp. References getComment(), TextBlock::setAttributesFromObject(), and CodeBlock::setAttributesFromObject(). Referenced by CodeMethodBlock::setAttributesFromObject(), and CodeClassFieldDeclarationBlock::setAttributesFromObject(). |
|
||||||||||||
|
set attributes of the node that represents this class in the XMI document.
Reimplemented from CodeBlock. Reimplemented in CodeClassFieldDeclarationBlock, CodeMethodBlock, and OwnedHierarchicalCodeBlock. Definition at line 83 of file codeblockwithcomments.cpp. References getComment(), CodeComment::saveToXMI(), and CodeBlock::setAttributesOnNode(). Referenced by saveToXMI(), CodeMethodBlock::setAttributesOnNode(), and CodeClassFieldDeclarationBlock::setAttributesOnNode(). |
|
|
set the class attributes of this object from the passed element node.
Reimplemented from CodeBlock. Reimplemented in CodeClassFieldDeclarationBlock, CodeMethodBlock, and OwnedHierarchicalCodeBlock. Definition at line 116 of file codeblockwithcomments.cpp. References getComment(), TextBlock::getTag(), CodeComment::loadFromXMI(), and CodeBlock::setAttributesFromNode(). Referenced by loadFromXMI(), CodeMethodBlock::setAttributesFromNode(), and CodeClassFieldDeclarationBlock::setAttributesFromNode(). |
The documentation for this class was generated from the following files:
