KJS::Completion

KJS::Completion Class Reference

#include <completion.h>

Public Member Functions

 Completion (ComplType c=Normal, JSValue *v=nullptr, Addr t=0)
 
ComplType complType () const
 
bool isValueCompletion () const
 
Addr target () const
 
JSValuevalue () const
 

Detailed Description

Completion objects are used to convey the return status and value from functions.

See FunctionImp::execute()

See also
FunctionImp

Handle for a Completion type.

Definition at line 52 of file completion.h.

Member Function Documentation

ComplType KJS::Completion::complType ( ) const
inline

Returns the type of this completion.

Definition at line 61 of file completion.h.

bool KJS::Completion::isValueCompletion ( ) const
inline

Returns true if this is a value completion, false otherwise.

Definition at line 86 of file completion.h.

Addr KJS::Completion::target ( ) const
inline

Returns the address a break or a continue statement targets.

Definition at line 78 of file completion.h.

JSValue* KJS::Completion::value ( ) const
inline

Returns the value of this completion if it is of type value-completion, 0 otherwise.

Definition at line 70 of file completion.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:58:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.