| Constructor and Description |
|---|
GroovyCompiler(PluginContext context) |
| Modifier and Type | Method and Description |
|---|---|
CommandResolution |
compileCommand(String name,
byte[] source)
Compile a command..
|
String |
doCallBack(ShellSession session,
String name,
String defaultValue) |
Set<String> |
getExtensions()
Returns the set of extensions managed by this implementation.
|
static groovy.lang.GroovyShell |
getGroovyShell(ShellSession session)
The underlying groovu shell used for the REPL.
|
public GroovyCompiler(PluginContext context)
public Set<String> getExtensions()
CompilergetExtensions in interface Compilerpublic String doCallBack(ShellSession session, String name, String defaultValue)
doCallBack in interface Compilerpublic static groovy.lang.GroovyShell getGroovyShell(ShellSession session)
public CommandResolution compileCommand(String name, byte[] source) throws CommandException, NullPointerException
CompilercompileCommand in interface Compilername - the command namesource - the command source @return the command or null if no command can be resolvedCommandException - when the command exists but cannot be createdNullPointerException - if the command name is nullCopyright © 2015 eXo Platform SAS. All Rights Reserved.