|
|
It is a complete specification of how a route needs to be matched, and what actions must be taken.
typedef vector<Node*> Nodes | Nodes |
term_syntax_error (class) | term_syntax_error |
Term (const string& name)
| Term |
Parameters:
name | term name. |
~Term ()
| ~Term |
const string& name ()
| name |
[const]
Returns: name of the term.
const string& source ()
| source |
[const]
Returns: the original user source block configuration.
const string& dest ()
| dest |
[const]
Returns: the original user dest block configuration.
const string& action ()
| action |
[const]
Returns: the original user action block configuration.
void set_source (const string& src)
| set_source |
Parameters:
src | the un-parsed source block configuration. |
void set_dest (const string& dst)
| set_dest |
Parameters:
dst | the un-parsed dest block configuration. |
void set_action (const string& act)
| set_action |
Parameters:
act | the un-parsed action block configuration. |
string str ()
| str |
Returns: string representation of term.
const Element* accept (Visitor& v)
| accept |
Visitor implementation.
Parameters:
v | visitor used to visit this term. |
Nodes& source_nodes ()
| source_nodes |
Returns: parse tree of source block.
Nodes& dest_nodes ()
| dest_nodes |
Returns: parse tree of dest block.
Nodes& action_nodes ()
| action_nodes |
Returns: parse tree of action block.