Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions
OOModel::VariableDeclaration Class Reference
Inheritance diagram for OOModel::VariableDeclaration:
Core::Reflect< Base >

Public Types

enum class  InitializationKind : int { StandardInitialization , CallInitialization }
 

Public Member Functions

 VariableDeclaration (const QString &name, Expression *type, Expression *initialValue)
 
 VariableDeclaration (const QString &name, Expression *type, Modifier::Modifiers mod, Expression *initialValue=nullptr)
 
 VariableDeclaration (const QString &name, Expression *type=nullptr)
 
InitializationKind initializationKind () const
 
void setInitializationKind (const InitializationKind &kind)
 
virtual SymbolTypes symbolType () const override
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Member Enumeration Documentation

◆ InitializationKind

Enumerator
StandardInitialization 
CallInitialization 

Constructor & Destructor Documentation

◆ VariableDeclaration() [1/3]

OOModel::VariableDeclaration::VariableDeclaration ( const QString &  name,
Expression type = nullptr 
)

◆ VariableDeclaration() [2/3]

OOModel::VariableDeclaration::VariableDeclaration ( const QString &  name,
Expression type,
Expression initialValue 
)

◆ VariableDeclaration() [3/3]

OOModel::VariableDeclaration::VariableDeclaration ( const QString &  name,
Expression type,
Modifier::Modifiers  mod,
Expression initialValue = nullptr 
)

Member Function Documentation

◆ initializationKind()

VariableDeclaration::InitializationKind OOModel::VariableDeclaration::initializationKind ( ) const
inline

◆ setInitializationKind()

void OOModel::VariableDeclaration::setInitializationKind ( const InitializationKind kind)
inline

◆ symbolType()

VariableDeclaration::SymbolTypes OOModel::VariableDeclaration::symbolType ( ) const
overridevirtual