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.slf4j.Logger |
LOG |
static String |
NAMED |
Constructor and Description |
---|
CompileProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getCode() |
String |
getCommand() |
String |
getLang() |
String |
getNamed() |
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.slf4j.Logger 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 CommandProcessorResponse run(String command)
run
in interface CommandProcessor
command
- a String to be compiledpublic 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()
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2022 The Apache Software Foundation. All rights reserved.