public class JavaCompiler extends Object implements Compiler
| Modifier and Type | Field and Description |
|---|---|
private Compiler |
compiler
.
|
private static Set<String> |
EXT
.
|
private ClassLoader |
loader
.
|
| Constructor and Description |
|---|
JavaCompiler(ClassLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
CommandResolution |
compileCommand(String name,
byte[] source)
Compile a command..
|
void |
destroy(ShellSession session) |
String |
doCallBack(ShellSession session,
String name,
String defaultValue) |
Set<String> |
getExtensions()
Returns the set of extensions managed by this implementation.
|
void |
init(ShellSession session) |
private final ClassLoader loader
JavaCompiler(ClassLoader loader)
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 void init(ShellSession session)
public void destroy(ShellSession session)
public String doCallBack(ShellSession session, String name, String defaultValue)
doCallBack in interface CompilerCopyright © 2015 eXo Platform SAS. All Rights Reserved.