public class CompileProcessor extends Object implements CommandProcessor
Modifier and Type | Field and Description |
---|---|
static String |
AS |
static SessionState.LogHelper |
console |
static String |
GROOVY |
static String |
IO_TMP_DIR |
static org.apache.commons.logging.Log |
LOG |
static String |
NAMED |
Constructor and Description |
---|
CompileProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
String |
getCommand() |
String |
getLang() |
String |
getNamed() |
void |
init() |
CommandProcessorResponse |
run(String command)
User supplies dynamic code in this format:
COMPILE ` some code here ` AS groovy NAMED something.groovy;
CompileProcessor will compile and package this code into a jar.
|
void |
setCode(String code) |
void |
setLang(String lang) |
void |
setNamed(String named) |
public static final org.apache.commons.logging.Log LOG
public static final SessionState.LogHelper console
public static final String IO_TMP_DIR
public static final String GROOVY
public static final String AS
public static final String NAMED
public void init()
init
in interface CommandProcessor
public CommandProcessorResponse run(String command) throws CommandNeedRetryException
run
in interface CommandProcessor
command
- a String to be compiledCommandNeedRetryException
public String getLang()
public void setLang(String lang)
public String getCode()
public void setCode(String code)
public String getNamed()
public void setNamed(String named)
public String getCommand()
Copyright © 2017 The Apache Software Foundation. All rights reserved.