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()
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 void init(ShellSession session)
public void destroy(ShellSession session)
public String doCallBack(ShellSession session, String name, String defaultValue)
doCallBack
in interface Compiler
Copyright © 2015 eXo Platform SAS. All Rights Reserved.