org.crsh.lang.impl.script
Class ScriptRepl

java.lang.Object
  extended by org.crsh.lang.impl.script.ScriptRepl
All Implemented Interfaces:
Repl

public class ScriptRepl
extends Object
implements Repl

Author:
Julien Viet

Method Summary
 org.crsh.cli.impl.completion.CompletionMatch complete(ShellSession session, String prefix)
          Perform completion.
 ReplResponse eval(ShellSession session, String request)
          Evaluate a request.
 String getDescription()
           
static ScriptRepl getInstance()
           
 Language getLanguage()
           
 String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ScriptRepl getInstance()

getLanguage

public Language getLanguage()
Specified by:
getLanguage in interface Repl
Returns:
the language this repl belongs to

getName

public String getName()

getDescription

public String getDescription()
Specified by:
getDescription in interface Repl
Returns:
a descripton of the Repl

eval

public ReplResponse eval(ShellSession 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 org.crsh.cli.impl.completion.CompletionMatch complete(ShellSession session,
                                                             String prefix)
Description copied from interface: Repl
Perform completion.

Specified by:
complete in interface Repl
Parameters:
session - the session
prefix - the prefix to complete
Returns:
the completion match


Copyright © 2015 eXo Platform SAS. All Rights Reserved.