#include <streenamedlist.h>
Inheritance diagram for Ternary:
Public Member Functions | |
Ternary (string name, Node *statement1, Node *statement2, Node *statement3) | |
Creates Ternary with given name and children. | |
Node * | getStatement1 () |
Returns the first child of the node. | |
Node * | getStatement2 () |
Returns the second child of the node. | |
Node * | getStatement3 () |
Returns the third child of the node. | |
const Node * | getStatement1 () const |
Returns the first child of the node. | |
const Node * | getStatement2 () const |
Returns the second child of the node. | |
const Node * | getStatement3 () const |
Returns the third child of the node. | |
virtual ostream & | php (ostream &os) const |
Writes node to the stream as php. | |
virtual Node * | copy () const |
Copies the node. |
Definition at line 67 of file streenamedlist.h.
|
Creates Ternary with given name and children.
Definition at line 68 of file streenamedlist.cpp. References List::push_back(). Referenced by copy(). |
|
Copies the node.
Reimplemented from List. Reimplemented in If, Class, Parameter, BinaryOperator, EncapsExpr, AskOperator, and FunctionCall. Definition at line 88 of file streenamedlist.cpp. References List::getName(), getStatement1(), getStatement2(), getStatement3(), and Ternary(). |
|
Returns the first child of the node.
Definition at line 79 of file streenamedlist.cpp. |
|
Returns the first child of the node.
Definition at line 75 of file streenamedlist.cpp. Referenced by copy(), FunctionCall::copy(), AskOperator::copy(), EncapsExpr::copy(), BinaryOperator::copy(), Parameter::copy(), Class::copy(), If::copy(), AskOperator::evaluate(), BinaryOperator::evaluate(), php(), FunctionCall::php(), AskOperator::php(), EncapsExpr::php(), BinaryOperator::php(), Parameter::php(), Class::php(), and If::php(). |
|
Returns the second child of the node.
Definition at line 80 of file streenamedlist.cpp. |
|
Returns the second child of the node.
Definition at line 76 of file streenamedlist.cpp. Referenced by copy(), FunctionCall::copy(), AskOperator::copy(), EncapsExpr::copy(), BinaryOperator::copy(), Parameter::copy(), Class::copy(), If::copy(), AskOperator::evaluate(), EncapsExpr::evaluate(), BinaryOperator::evaluate(), php(), FunctionCall::php(), AskOperator::php(), EncapsExpr::php(), BinaryOperator::php(), Parameter::php(), Class::php(), and If::php(). |
|
Returns the third child of the node.
Definition at line 81 of file streenamedlist.cpp. |
|
Returns the third child of the node.
Definition at line 77 of file streenamedlist.cpp. Referenced by copy(), FunctionCall::copy(), AskOperator::copy(), EncapsExpr::copy(), BinaryOperator::copy(), Parameter::copy(), Class::copy(), If::copy(), AskOperator::evaluate(), BinaryOperator::evaluate(), php(), FunctionCall::php(), AskOperator::php(), EncapsExpr::php(), BinaryOperator::php(), Parameter::php(), Class::php(), and If::php(). |
|
Writes node to the stream as php.
Reimplemented from List. Reimplemented in If, Class, Parameter, BinaryOperator, EncapsExpr, AskOperator, and FunctionCall. Definition at line 83 of file streenamedlist.cpp. References List::getName(), getStatement1(), getStatement2(), and getStatement3(). |