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

#include <PrimaryExpression.hpp>

Inheritance diagram for ast::pe::PrimaryExpression:
ast::Expression ast::Node ast::PositionAwareNode ast::pe::Bool ast::pe::Ident ast::pe::Integer ast::pe::MethodInvocation ast::pe::NewArrayExpression ast::pe::NewObjectExpression ast::pe::Object

Public Member Functions

 PrimaryExpression (source_position_t position)
 
virtual bool standalone () const
 
virtual std::pair< bool, bool > constBool () const
 
- Public Member Functions inherited from ast::Expression
 Expression (source_position_t position)
 
virtual shptr< Typeget_type (semantic::SemanticAnalysis &sa, shptr< semantic::symbol::SymbolTable > symbolTable) const =0
 
virtual bool isLValue () const =0
 
virtual void accept (ASTVisitor &visitor) const
 
- Public Member Functions inherited from ast::Node
virtual void toString (std::ostream &out, unsigned int indent, bool special=false) const =0
 
- 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::pe::PrimaryExpression::PrimaryExpression ( source_position_t  position)

Member Function Documentation

std::pair< bool, bool > ast::pe::PrimaryExpression::constBool ( ) const
virtual

Special while check for definite return analysis: Return a pair<bool,bool>. The first bool signifies whether it is a constant bool expression, and in this case, the second bool is the result.

Implements ast::Expression.

Reimplemented in ast::pe::Bool.

bool ast::pe::PrimaryExpression::standalone ( ) const
virtual

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