Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
Interaction::OperatorDescriptor Class Reference
Inheritance diagram for Interaction::OperatorDescriptor:
Interaction::ErrorDescriptor OOInteraction::OOOperatorDescriptor OOInteraction::CommandDescriptor OOInteraction::CompoundObjectDescriptor

Public Types

enum  Associativity { LeftAssociative , RightAssociative , NotAssociative }
 

Public Member Functions

 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

static bool isDelimiter (const QString &str)
 

Private Attributes

Associativity associativity_ {}
 
QList< ExpectedTokenexpectedTokens_
 
QList< QStringList > infixesTokens_
 
bool isError_ {}
 
QString name_
 
int num_operands_ {}
 
QStringList postfixTokens_
 
int precedence_ {}
 
QStringList prefixTokens_
 
QStringList signature_
 
bool transient_ {}
 

Member Enumeration Documentation

◆ Associativity

Enumerator
LeftAssociative 
RightAssociative 
NotAssociative 

Constructor & Destructor Documentation

◆ OperatorDescriptor() [1/3]

Interaction::OperatorDescriptor::OperatorDescriptor ( )

◆ OperatorDescriptor() [2/3]

Interaction::OperatorDescriptor::OperatorDescriptor ( const QString &  name,
const QString &  signature,
int  precedence,
Associativity  associativity 
)

◆ OperatorDescriptor() [3/3]

Interaction::OperatorDescriptor::OperatorDescriptor ( const QString &  prefixText,
const QString &  postfixText 
)

◆ ~OperatorDescriptor()

Interaction::OperatorDescriptor::~OperatorDescriptor ( )
virtual

Member Function Documentation

◆ associativity()

OperatorDescriptor::Associativity Interaction::OperatorDescriptor::associativity ( )
inline

◆ delimiters()

QStringList Interaction::OperatorDescriptor::delimiters ( )

◆ expectedTokens()

const QList< ExpectedToken > & Interaction::OperatorDescriptor::expectedTokens ( ) const
inline

◆ infix()

const QStringList & Interaction::OperatorDescriptor::infix ( int  at) const
inline

◆ infixes()

const QList< QStringList > & Interaction::OperatorDescriptor::infixes ( ) const
inline

◆ isDelimiter() [1/2]

bool Interaction::OperatorDescriptor::isDelimiter ( const QString &  str)
inlinestatic

◆ isDelimiter() [2/2]

bool Interaction::OperatorDescriptor::isDelimiter ( int  signatureIndex)

◆ isTransient()

bool Interaction::OperatorDescriptor::isTransient ( )
inline

◆ name()

const QString & Interaction::OperatorDescriptor::name ( )
inline

◆ numOperands()

int Interaction::OperatorDescriptor::numOperands ( )
inline

◆ postfix()

const QStringList & Interaction::OperatorDescriptor::postfix ( ) const
inline

◆ precedence()

int Interaction::OperatorDescriptor::precedence ( )
inline

◆ prefix()

const QStringList & Interaction::OperatorDescriptor::prefix ( ) const
inline

◆ setTransient()

void Interaction::OperatorDescriptor::setTransient ( bool  transient)
inline

◆ signature()

const QStringList & Interaction::OperatorDescriptor::signature ( )
inline

Member Data Documentation

◆ associativity_

Associativity Interaction::OperatorDescriptor::associativity_ {}
private

◆ expectedTokens_

QList<ExpectedToken> Interaction::OperatorDescriptor::expectedTokens_
private

◆ infixesTokens_

QList<QStringList> Interaction::OperatorDescriptor::infixesTokens_
private

◆ isError_

bool Interaction::OperatorDescriptor::isError_ {}
private

◆ name_

QString Interaction::OperatorDescriptor::name_
private

◆ num_operands_

int Interaction::OperatorDescriptor::num_operands_ {}
private

◆ postfixTokens_

QStringList Interaction::OperatorDescriptor::postfixTokens_
private

◆ precedence_

int Interaction::OperatorDescriptor::precedence_ {}
private

◆ prefixTokens_

QStringList Interaction::OperatorDescriptor::prefixTokens_
private

◆ signature_

QStringList Interaction::OperatorDescriptor::signature_
private

◆ transient_

bool Interaction::OperatorDescriptor::transient_ {}
private