public class ScriptCompiler extends Object implements Compiler
| Modifier and Type | Field and Description |
|---|---|
private static Set<String> |
EXT
.
|
(package private) static ScriptCompiler |
instance
.
|
| Constructor and Description |
|---|
ScriptCompiler() |
| 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 ScriptCompiler |
getInstance() |
static final ScriptCompiler instance
public ScriptCompiler()
public static ScriptCompiler getInstance()
public Set<String> getExtensions()
CompilergetExtensions in interface Compilerpublic 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 nullpublic String doCallBack(ShellSession session, String name, String defaultValue)
doCallBack in interface CompilerCopyright © 2015 eXo Platform SAS. All Rights Reserved.