Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::SwitchStatement Class Reference

#include <bond/compiler/parsenodes.h>

Inheritance diagram for Bond::SwitchStatement:
Bond::ListParseNode Bond::ParseNode

Public Member Functions

 SwitchStatement (const Token *keyword, Expression *control, SwitchSection *sectionList)
 
virtual ~SwitchStatement ()
 
virtual void Accept (ParseNodeVisitor &visitor) override
 
virtual void Accept (ParseNodeVisitor &visitor) const override
 
virtual const TokenGetContextToken () const override
 
const TokenGetKeyword () const
 
ExpressionGetControl ()
 
const ExpressionGetControl () const
 
SwitchSectionGetSectionList ()
 
const SwitchSectionGetSectionList () const
 
const ResolvedSwitchLabelGetResolvedLabelList () const
 
void SetResolvedLabelList (const ResolvedSwitchLabel *labelList)
 
uint32_t GetNumMatches () const
 
void SetNumMatches (uint32_t numMatches)
 
int32_t GetMinMatch () const
 
void SetMinMatch (int32_t minMatch)
 
int32_t GetMaxMatch () const
 
void SetMaxMatch (int32_t maxMatch)
 
- Public Member Functions inherited from Bond::ListParseNode
virtual ~ListParseNode ()
 
ListParseNodeGetNextNode ()
 
const ListParseNodeGetNextNode () const
 
void SetNextNode (ListParseNode *next)
 
- Public Member Functions inherited from Bond::ParseNode
virtual ~ParseNode ()
 
virtual void Accept (ParseNodeVisitor &visitor)=0
 
virtual void Accept (ParseNodeVisitor &visitor) const =0
 
virtual const TokenGetContextToken () const =0
 

Additional Inherited Members

- Protected Member Functions inherited from Bond::ListParseNode
 ListParseNode ()
 
- Protected Member Functions inherited from Bond::ParseNode
 ParseNode ()
 

Constructor & Destructor Documentation

◆ SwitchStatement()

Bond::SwitchStatement::SwitchStatement ( const Token keyword,
Expression control,
SwitchSection sectionList 
)
inline

◆ ~SwitchStatement()

virtual Bond::SwitchStatement::~SwitchStatement ( )
inlinevirtual

Member Function Documentation

◆ Accept() [1/2]

virtual void Bond::SwitchStatement::Accept ( ParseNodeVisitor visitor) const
inlineoverridevirtual

Implements Bond::ParseNode.

◆ Accept() [2/2]

virtual void Bond::SwitchStatement::Accept ( ParseNodeVisitor visitor)
inlineoverridevirtual

Implements Bond::ParseNode.

◆ GetContextToken()

virtual const Token * Bond::SwitchStatement::GetContextToken ( ) const
inlineoverridevirtual

Implements Bond::ParseNode.

◆ GetControl() [1/2]

Expression * Bond::SwitchStatement::GetControl ( )
inline

◆ GetControl() [2/2]

const Expression * Bond::SwitchStatement::GetControl ( ) const
inline

◆ GetKeyword()

const Token * Bond::SwitchStatement::GetKeyword ( ) const
inline

◆ GetMaxMatch()

int32_t Bond::SwitchStatement::GetMaxMatch ( ) const
inline

◆ GetMinMatch()

int32_t Bond::SwitchStatement::GetMinMatch ( ) const
inline

◆ GetNumMatches()

uint32_t Bond::SwitchStatement::GetNumMatches ( ) const
inline

◆ GetResolvedLabelList()

const ResolvedSwitchLabel * Bond::SwitchStatement::GetResolvedLabelList ( ) const
inline

◆ GetSectionList() [1/2]

SwitchSection * Bond::SwitchStatement::GetSectionList ( )
inline

◆ GetSectionList() [2/2]

const SwitchSection * Bond::SwitchStatement::GetSectionList ( ) const
inline

◆ SetMaxMatch()

void Bond::SwitchStatement::SetMaxMatch ( int32_t  maxMatch)
inline

◆ SetMinMatch()

void Bond::SwitchStatement::SetMinMatch ( int32_t  minMatch)
inline

◆ SetNumMatches()

void Bond::SwitchStatement::SetNumMatches ( uint32_t  numMatches)
inline

◆ SetResolvedLabelList()

void Bond::SwitchStatement::SetResolvedLabelList ( const ResolvedSwitchLabel labelList)
inline

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