|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.lang.impl.java.JavaCompiler
public class JavaCompiler
Field Summary | |
---|---|
private Compiler |
compiler
. |
private static Set<String> |
EXT
. |
private ClassLoader |
loader
. |
Constructor Summary | |
---|---|
JavaCompiler(ClassLoader loader)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Set<String> EXT
private final Compiler compiler
private final ClassLoader loader
Constructor Detail |
---|
JavaCompiler(ClassLoader loader)
Method Detail |
---|
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 resolved
CommandException
- when the command exists but cannot be created
NullPointerException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |