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()
Compiler
getExtensions
in interface Compiler
public CommandResolution compileCommand(String name, byte[] source) throws CommandException, NullPointerException
Compiler
compileCommand
in interface Compiler
name
- 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 Compiler
Copyright © 2015 eXo Platform SAS. All Rights Reserved.