org.crsh.lang.spi
Interface Compiler
- All Known Implementing Classes:
- GroovyCompiler, JavaCompiler, ScriptCompiler
-
public interface Compiler
- Author:
- Julien Viet
getExtensions
Set<String> getExtensions()
-
Returns the set of extensions managed by this implementation.
-
- Returns:
- the set of extensions, for instance ("groovy")
compileCommand
CommandResolution compileCommand(String name,
byte[] source)
throws CommandException,
NullPointerException
-
Compile a command..
-
- 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
doCallBack
String doCallBack(ShellSession session,
String name,
String defaultValue)
-
Copyright © 2015 eXo Platform SAS. All Rights Reserved.