Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

Unary Class Reference

A node with one child. More...

#include <streenamedlist.h>

Inheritance diagram for Unary:

List Node AList Array Break ClassVariable ConstantEncapsedString ConstantString Continue CurlyBraces DoubleQuote Echo EchoPHP Exit Expression Global InlineHTML Isset PHP PHPVariable Print Return SmartyBraces Static Template Unset Use

Public Member Functions

 Unary (string name, Node *statement)
 Creates Unary with given name and child.

NodegetStatement1 ()
 Returns the child of the node.

const NodegetStatement1 () const
 Returns the child of the node.

virtual ostream & php (ostream &os) const
 Writes node to the stream as php.

virtual Nodecopy () const
 Copies the node.


Detailed Description

A node with one child.

Definition at line 28 of file streenamedlist.h.


Constructor & Destructor Documentation

Unary::Unary string  name,
Node statement
 

Creates Unary with given name and child.

Definition at line 19 of file streenamedlist.cpp.

References List::push_back().

Referenced by copy().


Member Function Documentation

Node * Unary::copy  )  const [virtual]
 

Copies the node.

Reimplemented from List.

Reimplemented in PHP, EchoPHP, CurlyBraces, SmartyBraces, DoubleQuote, Break, Continue, Return, Global, Static, Echo, Template, InlineHTML, Expression, Unset, Use, ClassVariable, AList, Exit, Print, Array, Isset, ConstantEncapsedString, ConstantString, and PHPVariable.

Definition at line 37 of file streenamedlist.cpp.

References List::getName(), getStatement1(), and Unary().

const Node * Unary::getStatement1  )  const
 

Returns the child of the node.

Definition at line 27 of file streenamedlist.cpp.

Node * Unary::getStatement1  ) 
 

Returns the child of the node.

Definition at line 23 of file streenamedlist.cpp.

Referenced by copy(), ConstantString::copy(), PHPVariable::copy(), ConstantEncapsedString::copy(), Isset::copy(), Array::copy(), Print::copy(), Exit::copy(), AList::copy(), ClassVariable::copy(), Use::copy(), Unset::copy(), Expression::copy(), InlineHTML::copy(), Template::copy(), Echo::copy(), Static::copy(), Global::copy(), Return::copy(), Continue::copy(), Break::copy(), DoubleQuote::copy(), SmartyBraces::copy(), CurlyBraces::copy(), EchoPHP::copy(), PHP::copy(), ConstantString::evaluate(), ConstantEncapsedString::evaluate(), DoubleQuote::evaluate(), MultiContextRule::generateSubcontext(), InlineHTML::getHTML(), php(), ConstantString::php(), PHPVariable::php(), ConstantEncapsedString::php(), Isset::php(), Array::php(), Print::php(), Exit::php(), AList::php(), ClassVariable::php(), Use::php(), Unset::php(), Expression::php(), InlineHTML::php(), Template::php(), Echo::php(), Static::php(), Global::php(), Return::php(), Continue::php(), Break::php(), DoubleQuote::php(), SmartyBraces::php(), CurlyBraces::php(), EchoPHP::php(), and PHP::php().

ostream & Unary::php ostream &  os  )  const [virtual]
 

Writes node to the stream as php.

Reimplemented from List.

Reimplemented in PHP, EchoPHP, CurlyBraces, SmartyBraces, DoubleQuote, Break, Continue, Return, Global, Static, Echo, Template, InlineHTML, Expression, Unset, Use, ClassVariable, AList, Exit, Print, Array, Isset, ConstantEncapsedString, ConstantString, and PHPVariable.

Definition at line 32 of file streenamedlist.cpp.

References List::getName(), and getStatement1().


The documentation for this class was generated from the following files:
Generated on Fri Nov 21 17:54:10 2003 for PHPX by doxygen 1.3.3