org.crsh.lang.impl.java
Class JavaCompiler
java.lang.Object
org.crsh.lang.impl.java.JavaCompiler
- All Implemented Interfaces:
- Compiler
-
public class JavaCompiler
- extends Object
-
- implements Compiler
-
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXT
private static final Set<String> EXT
-
.
compiler
private final Compiler compiler
-
.
loader
private final ClassLoader loader
-
.
JavaCompiler
JavaCompiler(ClassLoader loader)
getExtensions
public Set<String> getExtensions()
- Description copied from interface:
Compiler
-
Returns the set of extensions managed by this implementation.
-
- Specified by:
getExtensions
in interface Compiler
-
- Returns:
- the set of extensions, for instance ("groovy")
compileCommand
public CommandResolution compileCommand(String name,
byte[] source)
throws CommandException,
NullPointerException
- Description copied from interface:
Compiler
-
Compile a command..
-
- Specified by:
compileCommand
in interface Compiler
-
- Parameters:
name
- the command name
source
- the command source @return the command or null if no command can be resolved
- Throws:
CommandException
- when the command exists but cannot be created
NullPointerException
- if the command name is null
init
public void init(ShellSession session)
-
-
destroy
public void destroy(ShellSession session)
-
-
doCallBack
public String doCallBack(ShellSession session,
String name,
String defaultValue)
-
- Specified by:
doCallBack
in interface Compiler
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.