Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
using | CreateFunction = std::function< OOModel::Expression *(const QList< OOModel::Expression * > &operands)> |
Public Types inherited from Interaction::OperatorDescriptor | |
enum | Associativity { LeftAssociative , RightAssociative , NotAssociative } |
Public Member Functions | |
OOOperatorDescriptor (const QString &name, const QString &signature, int precedence, Associativity associativity) | |
OOOperatorDescriptor (const QString &name, const QString &signature, int precedence, Associativity associativity, CreateFunction createFunction) | |
virtual OOModel::Expression * | create (const QList< OOModel::Expression * > &operands) |
Public Member Functions inherited from Interaction::OperatorDescriptor | |
OperatorDescriptor () | |
OperatorDescriptor (const QString &name, const QString &signature, int precedence, Associativity associativity) | |
OperatorDescriptor (const QString &prefixText, const QString &postfixText) | |
virtual | ~OperatorDescriptor () |
Associativity | associativity () |
QStringList | delimiters () |
const QList< ExpectedToken > & | expectedTokens () const |
const QStringList & | infix (int at) const |
const QList< QStringList > & | infixes () const |
bool | isDelimiter (int signatureIndex) |
bool | isTransient () |
const QString & | name () |
int | numOperands () |
const QStringList & | postfix () const |
int | precedence () |
const QStringList & | prefix () const |
void | setTransient (bool transient) |
const QStringList & | signature () |
Static Public Member Functions | |
template<OOModel::AssignmentExpression::AssignmentTypes op> | |
static OOModel::Expression * | assignment (const QList< OOModel::Expression * > &operands) |
template<OOModel::BinaryOperation::OperatorTypes op> | |
static OOModel::Expression * | binary (const QList< OOModel::Expression * > &operands) |
template<OOModel::UnaryOperation::OperatorTypes op> | |
static OOModel::Expression * | unary (const QList< OOModel::Expression * > &operands) |
Static Public Member Functions inherited from Interaction::OperatorDescriptor | |
static bool | isDelimiter (const QString &str) |
Private Attributes | |
CreateFunction | createFunction_ {} |
using OOInteraction::OOOperatorDescriptor::CreateFunction = std::function<OOModel::Expression*(const QList<OOModel::Expression*>& operands)> |
OOInteraction::OOOperatorDescriptor::OOOperatorDescriptor | ( | const QString & | name, |
const QString & | signature, | ||
int | precedence, | ||
Associativity | associativity | ||
) |
OOInteraction::OOOperatorDescriptor::OOOperatorDescriptor | ( | const QString & | name, |
const QString & | signature, | ||
int | precedence, | ||
Associativity | associativity, | ||
CreateFunction | createFunction | ||
) |
|
static |
|
static |
|
virtual |
Reimplemented in OOInteraction::CompoundObjectDescriptor, and OOInteraction::CommandDescriptor.
|
static |
|
private |