org.crsh.lang.script
Class ScriptREPL

java.lang.Object
  extended by org.crsh.lang.script.ScriptREPL
All Implemented Interfaces:
REPL

public class ScriptREPL
extends Object
implements REPL

Author:
Julien Viet

Field Summary
(package private) static Logger log
          .
 
Constructor Summary
ScriptREPL()
           
 
Method Summary
 CompletionMatch complete(REPLSession session, String prefix)
           
 EvalResponse eval(REPLSession session, String request)
          Evaluate a request
 String getName()
          Return the repl name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static final Logger log
.

Constructor Detail

ScriptREPL

public ScriptREPL()
Method Detail

getName

public String getName()
Description copied from interface: REPL
Return the repl name.

Specified by:
getName in interface REPL
Returns:
the repl name

eval

public EvalResponse eval(REPLSession session,
                         String request)
Description copied from interface: REPL
Evaluate a request

Specified by:
eval in interface REPL
Parameters:
session - the session
request - the request to evaluate
Returns:
the evaluation response

complete

public CompletionMatch complete(REPLSession session,
                                String prefix)
Specified by:
complete in interface REPL


Copyright © 2013 eXo Platform SAS. All Rights Reserved.