v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LineEditor Class Referenceabstract

#include <d8.h>

Inheritance diagram for LineEditor:

Public Types

enum  Type { DUMB = 0, READLINE = 1 }
 

Public Member Functions

 LineEditor (Type type, const char *name)
 
virtual ~LineEditor ()
 
virtual Handle< StringPrompt (const char *prompt)=0
 
virtual bool Open (Isolate *isolate)
 
virtual bool Close ()
 
virtual void AddHistory (const char *str)
 
const char * name ()
 

Static Public Member Functions

static LineEditorGet ()
 

Detailed Description

Definition at line 119 of file d8.h.

Member Enumeration Documentation

enum Type
Enumerator
DUMB 
READLINE 

Definition at line 121 of file d8.h.

Constructor & Destructor Documentation

LineEditor ( Type  type,
const char *  name 
)

Definition at line 131 of file d8.cc.

References current_, and NULL.

virtual ~LineEditor ( )
inlinevirtual

Definition at line 123 of file d8.h.

Member Function Documentation

virtual void AddHistory ( const char *  str)
inlinevirtual

Reimplemented in ReadLineEditor.

Definition at line 128 of file d8.h.

virtual bool Close ( )
inlinevirtual

Reimplemented in ReadLineEditor.

Definition at line 127 of file d8.h.

Referenced by Shell::OnExit().

static LineEditor* Get ( )
inlinestatic

Definition at line 131 of file d8.h.

Referenced by Shell::OnExit().

const char* name ( )
inline

Definition at line 130 of file d8.h.

virtual bool Open ( Isolate isolate)
inlinevirtual

Reimplemented in ReadLineEditor.

Definition at line 126 of file d8.h.

virtual Handle<String> Prompt ( const char *  prompt)
pure virtual

Implemented in DumbLineEditor, and ReadLineEditor.


The documentation for this class was generated from the following files: