Public Types | Public Member Functions

el7::scripting::parsing::ArithmeticNode Class Reference

#include <ArithmeticNode.h>

Inheritance diagram for el7::scripting::parsing::ArithmeticNode:
el7::scripting::parsing::ExpressionNode el7::scripting::parsing::Node

List of all members.

Public Types

enum  OperatorType {
  Addition, Subtraction, Multiplication, Division,
  Modulo
}

Public Member Functions

 ArithmeticNode (unsigned long code_ref, ExpressionNode *lhs_expression_node, OperatorType operator_type, ExpressionNode *rhs_expression_node)
 ~ArithmeticNode (void)
const ExpressionNodeget_lhs_expression_node () const
const OperatorType get_operator_type () const
const ExpressionNodeget_rhs_expression_node () const
void build (building::Builder *builder) const

Detailed Description

Represents an arithmetic expression node within the syntax tree built by the parser.


Member Enumeration Documentation

Enumerator:
Addition 
Subtraction 
Multiplication 
Division 
Modulo 

Constructor & Destructor Documentation

el7::scripting::parsing::ArithmeticNode::ArithmeticNode ( unsigned long  code_ref,
ExpressionNode lhs_expression_node,
OperatorType  operator_type,
ExpressionNode rhs_expression_node 
)

Explicit constructor.

el7::scripting::parsing::ArithmeticNode::~ArithmeticNode ( void   ) 

Destructor.


Member Function Documentation

void el7::scripting::parsing::ArithmeticNode::build ( building::Builder builder  )  const [virtual]
const ExpressionNode* el7::scripting::parsing::ArithmeticNode::get_lhs_expression_node (  )  const [inline]

Returns the left-hand side expression node.

const OperatorType el7::scripting::parsing::ArithmeticNode::get_operator_type (  )  const [inline]

Returns the arithmetic operator type.

const ExpressionNode* el7::scripting::parsing::ArithmeticNode::get_rhs_expression_node (  )  const [inline]

Returns the right-hand side expression node.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines