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
ReadLineEditor Class Reference
Inheritance diagram for ReadLineEditor:
Collaboration diagram for ReadLineEditor:

Public Member Functions

 ReadLineEditor ()
 
virtual Handle< StringPrompt (const char *prompt)
 
virtual bool Open (Isolate *isolate)
 
virtual bool Close ()
 
virtual void AddHistory (const char *str)
 
- Public Member Functions inherited from LineEditor
 LineEditor (Type type, const char *name)
 
virtual ~LineEditor ()
 
const char * name ()
 

Static Public Attributes

static const char * kHistoryFileName = ".d8_history"
 
static const int kMaxHistoryEntries = 1000
 

Additional Inherited Members

- Public Types inherited from LineEditor
enum  Type { DUMB = 0, READLINE = 1 }
 
- Static Public Member Functions inherited from LineEditor
static LineEditorGet ()
 

Detailed Description

Definition at line 48 of file d8-readline.cc.

Constructor & Destructor Documentation

ReadLineEditor ( )
inline

Definition at line 50 of file d8-readline.cc.

Member Function Documentation

void AddHistory ( const char *  str)
virtual

Reimplemented from LineEditor.

Definition at line 118 of file d8-readline.cc.

Referenced by ReadLineEditor::Prompt().

bool Close ( )
virtual

Reimplemented from LineEditor.

Definition at line 101 of file d8-readline.cc.

References ReadLineEditor::kHistoryFileName.

bool Open ( Isolate isolate)
virtual

Reimplemented from LineEditor.

Definition at line 80 of file d8-readline.cc.

References ReadLineEditor::kHistoryFileName, and ReadLineEditor::kMaxHistoryEntries.

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

Field Documentation

const char * kHistoryFileName = ".d8_history"
static

Definition at line 56 of file d8-readline.cc.

Referenced by ReadLineEditor::Close(), and ReadLineEditor::Open().

const int kMaxHistoryEntries = 1000
static

Definition at line 57 of file d8-readline.cc.

Referenced by ReadLineEditor::Open().


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