• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Kross

  • Kross
  • Interpreter
Public Member Functions | List of all members
Kross::Interpreter Class Referenceabstract

#include <interpreter.h>

Inheritance diagram for Kross::Interpreter:
Inheritance graph
[legend]

Public Member Functions

 Interpreter (InterpreterInfo *info)
 
virtual ~Interpreter ()
 
virtual Script * createScript (Action *Action)=0
 
InterpreterInfo * interpreterInfo () const
 
- Public Member Functions inherited from Kross::ErrorInterface
 ErrorInterface ()
 
void clearError ()
 
long errorLineNo () const
 
const QString errorMessage () const
 
const QString errorTrace () const
 
bool hadError () const
 
void setError (const QString &errormessage, const QString &tracemessage=QString(), long lineno=-1)
 
void setError (ErrorInterface *error)
 

Detailed Description

Base class for interpreter implementations.

Each scripting backend needs to inherit its own interpreter and implement it.

The Interpreter will be managed by the Manager class and does provide a factory method to create Script implementations.

Definition at line 177 of file core/interpreter.h.

Constructor & Destructor Documentation

Interpreter::Interpreter ( InterpreterInfo *  info)
explicit

Constructor.

Parameters
infois the InterpreterInfo instance that describes this interpreter.

Definition at line 160 of file core/interpreter.cpp.

Interpreter::~Interpreter ( )
virtual

Destructor.

Definition at line 167 of file core/interpreter.cpp.

Member Function Documentation

virtual Script* Kross::Interpreter::createScript ( Action *  Action)
pure virtual

Create and return a new interpreter dependent Script instance.

Parameters
ActionThe Action to use for the Script instance.
Returns
The from Script inherited instance.

Implemented in Kross::KjsInterpreter, and Kross::EcmaInterpreter.

InterpreterInfo * Interpreter::interpreterInfo ( ) const
Returns
the InterpreterInfo that represents this Interpreter .

Definition at line 172 of file core/interpreter.cpp.


The documentation for this class was generated from the following files:
  • core/interpreter.h
  • core/interpreter.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

Skip menu "Kross"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal