Search for usage in LXR

KJSResult Class Reference

#include <kjsinterpreter.h>

Public Member Functions

 KJSResult ()
 KJSResult (const KJSResult &)
 ~KJSResult ()
QString errorMessage () const
bool isException () const
KJSResultoperator= (const KJSResult &)
KJSObject value () const

Detailed Description

A class representing the result of a script evaluation.

Definition at line 37 of file kjsinterpreter.h.

Constructor & Destructor Documentation

◆ KJSResult() [1/2]

KJSResult::KJSResult ( )

Constructs a default result object.

Definition at line 54 of file kjsinterpreter.cpp.

◆ KJSResult() [2/2]

KJSResult::KJSResult ( const KJSResult r)

Constructs a copy of another result object.

Definition at line 59 of file kjsinterpreter.cpp.

◆ ~KJSResult()

KJSResult::~KJSResult ( )

Frees resources held by this result object.

Definition at line 76 of file kjsinterpreter.cpp.

Member Function Documentation

◆ errorMessage()

QString KJSResult::errorMessage ( ) const

Returns the error message if this is an exception result.

Definition at line 86 of file kjsinterpreter.cpp.

◆ isException()

bool KJSResult::isException ( ) const

Returns true if the script evaluation has caused an exception.

Definition at line 81 of file kjsinterpreter.cpp.

◆ operator=()

KJSResult & KJSResult::operator= ( const KJSResult r)

Assigns the properties of another result object to this one.

Definition at line 65 of file kjsinterpreter.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:51:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.