Envision
A visual programming IDE for object-oriented languages
|
Classes | |
struct | Optional |
Public Types | |
enum | UseOptional { USE , AUTO , DO_NOT_USE } |
Public Member Functions | |
StringComponents (Model::Node *node=nullptr) | |
virtual | ~StringComponents () |
virtual QStringList | components () |
Static Public Member Functions | |
template<typename T > | |
static void | add (QStringList(*f)(T *node)) |
template<typename ... Args> | |
static QStringList | c (Args... args) |
template<typename E > | |
static Optional | choose (E value) |
template<typename E , typename ... Args> | |
static Optional | choose (E value, E option, Optional str, Args... args) |
static QStringList | componentsForNode (Model::Node *node) |
static void | initConversions () |
static Optional | list (Model::List *listNode, const QString &prefix, const QString &separator, const QString &postfix, bool nothingIfEmpty, bool collapse) |
static QList< int > | spaceNeededAfterUnfinishedExpressionParts (OOModel::UnfinishedOperator *e) |
Returns the indices of the positions where a space should be inserted in the string representation of this unfinished operator so as to prevent fusing of word-like parts. More... | |
static QString | stringForNode (Model::Node *node) |
Static Protected Member Functions | |
static Optional | list (Model::List *listNode) |
Static Private Member Functions | |
static void | c_helper (QStringList &) |
template<typename ... Args> | |
static void | c_helper (QStringList &result, Optional str, Args... args) |
static QMap< int, QStringList(*)(Model::Node *node)> & | componentFunctions () |
Private Attributes | |
Model::Node * | node_ |
OOInteraction::StringComponents::StringComponents | ( | Model::Node * | node = nullptr | ) |
|
virtual |
|
inlinestatic |
|
static |
|
inlinestaticprivate |
|
staticprivate |
|
static |
|
static |
|
staticprivate |
|
virtual |
|
static |
|
static |
|
staticprotected |
|
static |
|
static |
Returns the indices of the positions where a space should be inserted in the string representation of this unfinished operator so as to prevent fusing of word-like parts.
E.g. 'delete new' will need a space between the words
The returned list is ordered from smallest index to the largest one.
|
static |
|
private |