mjplusplus  v0.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ast::Ident Class Reference

#include <Ident.hpp>

Inheritance diagram for ast::Ident:
ast::Node ast::PositionAwareNode

Public Member Functions

 Ident (lexer::Token const &token)
 
virtual void toString (std::ostream &out, unsigned int indent, bool=false) const
 
std::string const & getName () const
 
bool operator== (Ident const &other)
 
bool operator!= (Ident const &other)
 
virtual void accept (ASTVisitor &visitor) const
 
- Public Member Functions inherited from ast::PositionAwareNode
source_position_t getPosition () const
 
 PositionAwareNode (lexer::Token const &token)
 
 PositionAwareNode (source_position_t const &position)
 

Additional Inherited Members

- Protected Attributes inherited from ast::PositionAwareNode
source_position_t position
 

Constructor & Destructor Documentation

ast::Ident::Ident ( lexer::Token const &  token)

Member Function Documentation

void ast::Ident::accept ( ASTVisitor visitor) const
virtual

Reimplemented from ast::Node.

std::string const & ast::Ident::getName ( ) const
bool ast::Ident::operator!= ( ast::Ident const &  other)
bool ast::Ident::operator== ( ast::Ident const &  other)
void ast::Ident::toString ( std::ostream &  out,
unsigned int  indent,
bool  special = false 
) const
virtual

writes a representation of the Node to out, including all children. special invokes "special" behavior for certain nodes MethodDeclaration: print static keyword Block & If: skip indentation Expression: don't print surrounding parens in addition Block doesn't print newline after trailing } if ~indent is passed instead of indent

Implements ast::Node.


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