v8  3.14.5(node0.10.28)
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 ()
 
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 73 of file d8.cc.

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().

LineEditor * Get ( )
static

Definition at line 81 of file d8.cc.

References NULL.

const char* name ( )
inline

Definition at line 130 of file d8.h.

virtual bool Open ( )
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: