#include <Puma/CTree.h>
Public Member Functions | |
const char * | NodeName () const |
CTypeInfo * | Type () const |
CExprValue * | Value () const |
CSemValue * | SemValue () const |
virtual CT_Expression * | IsExpression () |
Static Public Member Functions | |
static const char * | NodeId () |
Protected Member Functions | |
CT_Expression () |
Puma::CT_Expression::CT_Expression | ( | ) | [inline, protected] |
Constructor.
static const char* Puma::CT_Expression::NodeId | ( | ) | [static] |
Get the identifier for this node type. Can be compared with NodeName().
Reimplemented in Puma::CT_Call, Puma::CT_ImplicitCall, Puma::CT_Integer, Puma::CT_Character, Puma::CT_WideCharacter, Puma::CT_Float, Puma::CT_Bool, Puma::CT_BracedExpr, Puma::CT_BinaryExpr, Puma::CT_MembPtrExpr, Puma::CT_MembRefExpr, Puma::CT_UnaryExpr, Puma::CT_PostfixExpr, Puma::CT_AddrExpr, Puma::CT_DerefExpr, Puma::CT_DeleteExpr, Puma::CT_NewExpr, Puma::CT_IfThenExpr, Puma::CT_CmpdLiteral, Puma::CT_ConstructExpr, Puma::CT_ThrowExpr, Puma::CT_IndexExpr, Puma::CT_CallExpr, Puma::CT_CastExpr, Puma::CT_StaticCast, Puma::CT_ConstCast, Puma::CT_ReintCast, Puma::CT_DynamicCast, Puma::CT_ImplicitCast, Puma::CT_TypeidExpr, Puma::CT_SizeofExpr, Puma::CT_IndexDesignator, Puma::CT_MembDesignator, Puma::CT_MembInit, and Puma::CT_GnuStatementExpr.
const char* Puma::CT_Expression::NodeName | ( | ) | const [inline, virtual] |
Get the name of the node. Can be compared with NodeId().
Implements Puma::CTree.
Reimplemented in Puma::CT_Call, Puma::CT_ImplicitCall, Puma::CT_Integer, Puma::CT_Character, Puma::CT_WideCharacter, Puma::CT_Float, Puma::CT_Bool, Puma::CT_BracedExpr, Puma::CT_BinaryExpr, Puma::CT_MembPtrExpr, Puma::CT_MembRefExpr, Puma::CT_UnaryExpr, Puma::CT_PostfixExpr, Puma::CT_AddrExpr, Puma::CT_DerefExpr, Puma::CT_DeleteExpr, Puma::CT_NewExpr, Puma::CT_IfThenExpr, Puma::CT_CmpdLiteral, Puma::CT_ConstructExpr, Puma::CT_ThrowExpr, Puma::CT_IndexExpr, Puma::CT_CallExpr, Puma::CT_CastExpr, Puma::CT_StaticCast, Puma::CT_ConstCast, Puma::CT_ReintCast, Puma::CT_DynamicCast, Puma::CT_ImplicitCast, Puma::CT_TypeidExpr, Puma::CT_SizeofExpr, Puma::CT_IndexDesignator, Puma::CT_MembDesignator, Puma::CT_MembInit, and Puma::CT_GnuStatementExpr.
CTypeInfo* Puma::CT_Expression::Type | ( | ) | const [inline, virtual] |
Get the type of the expression.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_BracedExpr.
CExprValue* Puma::CT_Expression::Value | ( | ) | const [inline, virtual] |
Get the value of the expression.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_BracedExpr.
CSemValue* Puma::CT_Expression::SemValue | ( | ) | const [inline, virtual] |
Get the semantic value information of the expression.
Reimplemented from Puma::CTree.
Reimplemented in Puma::CT_BracedExpr.
virtual CT_Expression* Puma::CT_Expression::IsExpression | ( | ) | [inline, virtual] |
Get this.
Reimplemented from Puma::CTree.