Public Member Functions | Private Attributes | List of all members
ExprAstLiteral Class Reference

Class representing a string literal in the AST. More...

Inheritance diagram for ExprAstLiteral:
ExprAst

Public Member Functions

 ExprAstLiteral (const char *lit)
 
const QCStringliteral () const
 
virtual TemplateVariant resolve (TemplateContext *)
 
- Public Member Functions inherited from ExprAst
virtual ~ExprAst ()
 

Private Attributes

QCString m_literal
 

Detailed Description

Class representing a string literal in the AST.

Definition at line 1482 of file template.cpp.

Constructor & Destructor Documentation

ExprAstLiteral::ExprAstLiteral ( const char *  lit)
inline

Definition at line 1485 of file template.cpp.

1485  : m_literal(lit)
1486  { TRACE(("ExprAstLiteral(%s)\n",lit)); }
auto lit(char arg)
Definition: parse_shims.h:11
QCString m_literal
Definition: template.cpp:1490
#define TRACE(x)
Definition: template.cpp:43

Member Function Documentation

const QCString& ExprAstLiteral::literal ( ) const
inline

Definition at line 1487 of file template.cpp.

1487 { return m_literal; }
QCString m_literal
Definition: template.cpp:1490
virtual TemplateVariant ExprAstLiteral::resolve ( TemplateContext )
inlinevirtual

Reimplemented from ExprAst.

Definition at line 1488 of file template.cpp.

1488 { return TemplateVariant(m_literal); }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
QCString m_literal
Definition: template.cpp:1490

Member Data Documentation

QCString ExprAstLiteral::m_literal
private

Definition at line 1490 of file template.cpp.


The documentation for this class was generated from the following file: