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:
Public Member Functions
virtual const std::string
toString () const
void
setExit (unsigned int level=1)
Sets the "exit" property of this element (i.e., if the element is match then exit one state)
More...
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)
Sets the state for which this element represents the start.
More...
const std::string getName () const
bool isRedef () const
void setRedef ()
bool isSubst () const
void setSubst ()
void
setParserInfo (const std::string &
name, unsigned int l)
Public Attributes
std::string filename
unsigned int line
Private Attributes
the element names
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,
bool
exit = false,
bool
all = false
)
- Parameters
-
names the element names (one for each subexpression)
def the whole definition
exit whether to exit one state
all whether to exit all states
Member Function Documentation
bool srchilite::srchilite::StateStartLangElem::exitAll
(
)
const
inlineinherited
- Returns
- whether the "exit" property is set
const
ElementNames* srchilite::NamedSubExpsLangElem::getElementNames
(
)
const
inline
- Returns
- the list of all the element names
unsigned int srchilite::srchilite::StateStartLangElem::getExit
(
)
const
inlineinherited
- Returns
- whether the "exit all" property is set
const
StringDef* srchilite::NamedSubExpsLangElem::getRegexpDef
(
)
const
inline
- Returns
- the complete expression for this element
StateLangElem* srchilite::srchilite::StateStartLangElem::getStateLangElem
(
)
const
inlineinherited
- Returns
- the state for which this element represents the start
void srchilite::srchilite::StateStartLangElem::setExit
(
unsigned int
level = 1 )
inlineinherited
Sets the "exit" property of this element (i.e., if the element is match then exit one state)
- Parameters
-
level the exit level (default to 1)
void srchilite::srchilite::StateStartLangElem::setStateLangElem
(
StateLangElem *
s )
inlineinherited
Sets the state for which this element represents the start.
- Parameters
-
s the state for which this element represents the start
virtual const std::string srchilite::NamedSubExpsLangElem::toString
(
)
const
virtual
virtual const std::string srchilite::NamedSubExpsLangElem::toStringOriginal
(
)
const
virtual
const std::string srchilite::LangElem::toStringParserInfo
(
)
const
inherited
- Returns
- a string representation of the ParserInfo struct
The documentation for this class was generated from the following file: