kjs Library API Documentation

KJS::ConditionalNode Class Reference

The ternary operator, "logical ? expr1 : expr2". More...

#include <nodes.h>

Inheritance diagram for KJS::ConditionalNode:

Inheritance graph
[legend]
Collaboration diagram for KJS::ConditionalNode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConditionalNode (Node *l, Node *e1, Node *e2)
virtual void ref ()
virtual bool deref ()
virtual Value evaluate (ExecState *exec) const
virtual void streamTo (SourceStream &s) const

Detailed Description

The ternary operator, "logical ? expr1 : expr2".

Definition at line 614 of file nodes.h.


Member Function Documentation

Value ConditionalNode::evaluate ExecState exec  )  const [virtual]
 

Returns the value represented by this node.

Always dereferenced.

Reimplemented from KJS::Node.

Definition at line 1504 of file nodes.cpp.

References KJS::Node::evaluate(), and KJS::Node::toBoolean().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kjs Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 15 10:37:08 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003