Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
OOModel::ErrorType Class Reference
Inheritance diagram for OOModel::ErrorType:
OOModel::Type

Public Member Functions

 ErrorType (const QString &message, const ReferenceExpression *unresolvedReference=nullptr)
 
virtual ErrorTypeclone () const override
 
virtual bool equals (const Type *other) const override
 
virtual bool isError () const override
 Returns true if this is an error type. More...
 
const QString & message () const
 
const ReferenceExpressionunresolvedReference () const
 
- Public Member Functions inherited from OOModel::Type
 Type (bool isValueType)
 
 Type (const Type &other)
 
virtual ~Type ()
 
bool isValueType () const
 Returns true if the this type belongs to an expression representing a value. More...
 
Qualifiers qualifiers () const
 
TypeSystem::TypeRelations relationTo (const Type *other) const
 
void setQualifiers (Qualifiers q, bool enable=true)
 
void setValueType (bool isValueType)
 

Private Attributes

QString message_
 
const ReferenceExpressionunresolvedReference_ {}
 

Additional Inherited Members

- Public Types inherited from OOModel::Type
enum  Qualifier { CONST = 0x1 , VOLATILE = 0x2 }
 
using Qualifiers = QFlags< Qualifier >
 

Constructor & Destructor Documentation

◆ ErrorType()

OOModel::ErrorType::ErrorType ( const QString &  message,
const ReferenceExpression unresolvedReference = nullptr 
)

Member Function Documentation

◆ clone()

ErrorType * OOModel::ErrorType::clone ( ) const
overridevirtual

Implements OOModel::Type.

◆ equals()

bool OOModel::ErrorType::equals ( const Type other) const
overridevirtual

Implements OOModel::Type.

◆ isError()

bool OOModel::ErrorType::isError ( ) const
overridevirtual

Returns true if this is an error type.

The default implementation returns false.

Reimplemented from OOModel::Type.

◆ message()

const QString & OOModel::ErrorType::message ( ) const
inline

◆ unresolvedReference()

const ReferenceExpression * OOModel::ErrorType::unresolvedReference ( ) const
inline

Member Data Documentation

◆ message_

QString OOModel::ErrorType::message_
private

◆ unresolvedReference_

const ReferenceExpression* OOModel::ErrorType::unresolvedReference_ {}
private