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

Public Member Functions

 ReadLineEditor ()
 
virtual Handle< StringPrompt (const char *prompt)
 
virtual bool Open ()
 
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 49 of file d8-readline.cc.

Constructor & Destructor Documentation

ReadLineEditor ( )
inline

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

Member Function Documentation

void AddHistory ( const char *  str)
virtual

Reimplemented from LineEditor.

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

Referenced by ReadLineEditor::Prompt().

bool Close ( )
virtual

Reimplemented from LineEditor.

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

References ReadLineEditor::kHistoryFileName.

bool Open ( )
virtual

Reimplemented from LineEditor.

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

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

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

Implements LineEditor.

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

References ReadLineEditor::AddHistory(), Isolate::GetCurrent(), String::New(), and NULL.

Field Documentation

const char * kHistoryFileName = ".d8_history"
static

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

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

const int kMaxHistoryEntries = 1000
static

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

Referenced by ReadLineEditor::Open().


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