Source-highlight Library
srchilite::NamedSubExpsLangElem Class Reference

An element with subparts (subexpressions), each with a possible different name. More...

#include <namedsubexpslangelem.h>

Inheritance diagram for srchilite::NamedSubExpsLangElem:
Collaboration diagram for srchilite::NamedSubExpsLangElem:

List of all members.

Public Member Functions

 NamedSubExpsLangElem (const ElementNames *names, StringDef *def, bool exit=false, bool all=false)
virtual const std::string toString () const
virtual const std::string toStringOriginal () const
const ElementNamesgetElementNames () const
const StringDefgetRegexpDef () const
virtual void dispatch_build (HighlightStateBuilder *, HighlightState *state)
virtual void dispatch_collect_const (LangElemsPrinter *)
void setExit (unsigned int level=1)
 Sets the "exit" property of this element (i.e., if the element is match then exit one state)
void setExit (unsigned int level=1)
 Sets the "exit" property of this element (i.e., if the element is match then exit one state)
void setExit (unsigned int level=1)
 Sets the "exit" property of this element (i.e., if the element is match then exit one state)
void setExit (unsigned int level=1)
 Sets the "exit" property of this element (i.e., if the element is match then exit one state)
void setExit (unsigned int level=1)
 Sets the "exit" property of this element (i.e., if the element is match then exit one state)
void setExit (unsigned int level=1)
 Sets the "exit" property of this element (i.e., if the element is match then exit one state)
void setExitAll ()
 Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state)
void setExitAll ()
 Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state)
void setExitAll ()
 Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state)
void setExitAll ()
 Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state)
void setExitAll ()
 Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state)
void setExitAll ()
 Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state)
bool exitAll () const
bool exitAll () const
bool exitAll () const
bool exitAll () const
bool exitAll () const
bool exitAll () const
unsigned int getExit () const
unsigned int getExit () const
unsigned int getExit () const
unsigned int getExit () const
unsigned int getExit () const
unsigned int getExit () const
StateLangElemgetStateLangElem () const
StateLangElemgetStateLangElem () const
StateLangElemgetStateLangElem () const
StateLangElemgetStateLangElem () const
StateLangElemgetStateLangElem () const
StateLangElemgetStateLangElem () const
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
void setStateLangElem (StateLangElem *s)
 Sets the state for which this element represents the start.
const std::string getName () const
const std::string getName () const
const std::string getName () const
const std::string getName () const
const std::string getName () const
const std::string getName () const
const std::string getName () const
const std::string getName () const
const std::string getName () const
const std::string getName () const
const std::string getName () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
bool isRedef () const
void setRedef ()
void setRedef ()
void setRedef ()
void setRedef ()
void setRedef ()
void setRedef ()
void setRedef ()
void setRedef ()
void setRedef ()
void setRedef ()
void setRedef ()
bool isSubst () const
bool isSubst () const
bool isSubst () const
bool isSubst () const
bool isSubst () const
bool isSubst () const
bool isSubst () const
bool isSubst () const
bool isSubst () const
bool isSubst () const
bool isSubst () const
void setSubst ()
void setSubst ()
void setSubst ()
void setSubst ()
void setSubst ()
void setSubst ()
void setSubst ()
void setSubst ()
void setSubst ()
void setSubst ()
void setSubst ()
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
const std::string toStringParserInfo () const
virtual void dispatch_build (HighlightStateBuilder *, HighlightState *state)
virtual void dispatch_collect_const (LangElemsPrinter *)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)
void setParserInfo (const std::string &name, unsigned int l)
void setParserInfo (const ParserInfo *p)

Public Attributes

std::string filename
unsigned int line

Private Attributes

const ElementNameselementNames
 the element names
StringDefregexpDef
 the whole regular expression defiition

Detailed Description

An element with subparts (subexpressions), each with a possible different name.


Constructor & Destructor Documentation

srchilite::NamedSubExpsLangElem::NamedSubExpsLangElem ( const ElementNames names,
StringDef def,
bool  exit = false,
bool  all = false 
)
Parameters:
namesthe element names (one for each subexpression)
defthe whole definition
exitwhether to exit one state
allwhether to exit all states

Member Function Documentation

bool srchilite::srchilite::StateStartLangElem::exitAll ( ) const [inline, inherited]
Returns:
whether the "exit" property is set
bool srchilite::srchilite::StateStartLangElem::exitAll ( ) const [inline, inherited]
Returns:
whether the "exit" property is set
bool srchilite::srchilite::StateStartLangElem::exitAll ( ) const [inline, inherited]
Returns:
whether the "exit" property is set
bool srchilite::srchilite::StateStartLangElem::exitAll ( ) const [inline, inherited]
Returns:
whether the "exit" property is set
bool srchilite::srchilite::StateStartLangElem::exitAll ( ) const [inline, inherited]
Returns:
whether the "exit" property is set
bool srchilite::srchilite::StateStartLangElem::exitAll ( ) const [inline, inherited]
Returns:
whether the "exit" property is set
Returns:
the list of all the element names
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline, inherited]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline, inherited]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline, inherited]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline, inherited]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline, inherited]
Returns:
whether the "exit all" property is set
unsigned int srchilite::srchilite::StateStartLangElem::getExit ( ) const [inline, inherited]
Returns:
whether the "exit all" property is set
Returns:
the complete expression for this element
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
Returns:
the state for which this element represents the start
void srchilite::srchilite::StateStartLangElem::setExit ( unsigned int  level = 1) [inline, inherited]

Sets the "exit" property of this element (i.e., if the element is match then exit one state)

Parameters:
levelthe exit level (default to 1)
void srchilite::srchilite::StateStartLangElem::setExit ( unsigned int  level = 1) [inline, inherited]

Sets the "exit" property of this element (i.e., if the element is match then exit one state)

Parameters:
levelthe exit level (default to 1)
void srchilite::srchilite::StateStartLangElem::setExit ( unsigned int  level = 1) [inline, inherited]

Sets the "exit" property of this element (i.e., if the element is match then exit one state)

Parameters:
levelthe exit level (default to 1)
void srchilite::srchilite::StateStartLangElem::setExit ( unsigned int  level = 1) [inline, inherited]

Sets the "exit" property of this element (i.e., if the element is match then exit one state)

Parameters:
levelthe exit level (default to 1)
void srchilite::srchilite::StateStartLangElem::setExit ( unsigned int  level = 1) [inline, inherited]

Sets the "exit" property of this element (i.e., if the element is match then exit one state)

Parameters:
levelthe exit level (default to 1)
void srchilite::srchilite::StateStartLangElem::setExit ( unsigned int  level = 1) [inline, inherited]

Sets the "exit" property of this element (i.e., if the element is match then exit one state)

Parameters:
levelthe exit level (default to 1)

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start

Sets the state for which this element represents the start.

Parameters:
sthe state for which this element represents the start
virtual const std::string srchilite::NamedSubExpsLangElem::toString ( ) const [virtual]
Returns:
a string representation

Reimplemented from srchilite::srchilite::StateStartLangElem.

virtual const std::string srchilite::NamedSubExpsLangElem::toStringOriginal ( ) const [virtual]
Returns:
a string representatio of the original expression (without any preprocessing)

Implements srchilite::srchilite::LangElem.

const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct
const std::string srchilite::srchilite::LangElem::toStringParserInfo ( ) const [inherited]
Returns:
a string representation of the ParserInfo struct

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