public class RunnerImpl extends ServiceBase implements Runner
| Modifier and Type | Field and Description |
|---|---|
static String |
DOLLAR_DOLLAR |
protected FetchRunnerImpl |
fetchRunner |
protected DTypeRegistry |
registry |
et, factorySvc, log| Constructor and Description |
|---|
RunnerImpl(FactoryService factorySvc,
DBInterface dbInterface) |
| Modifier and Type | Method and Description |
|---|---|
DeliaGeneratePhase |
createGenerator()
Get a generator which can be used to
render DValues into xml,json,etc
|
TypeRunner |
createTypeRunner() |
String |
evalVarAsString(String varName,
String typeName) |
ResultValue |
executeOneStatement(Exp exp)
Execute a single statement.
|
ResultValue |
executeProgram(List<Exp> expL)
Execute a single statement.
|
ResultValue |
executeStatement(Exp exp) |
boolean |
exists(String varName)
Does the given variable exist.
|
InternalCompileState |
getCompileState()
Get the compiler state.
|
ExecutionState |
getExecutionState()
Get the new execution context.
|
Log |
getLog() |
DTypeRegistry |
getRegistry() |
SprigService |
getSprigSvc() |
ResultValue |
getVar(String varName)
Gets a variable's value
|
boolean |
init(ExecutionState ctx)
Initialize the runner.
|
List<DValue> |
lookupVar(String varName) |
void |
runQueryFnsIfNeeded(QueryExp queryExp,
QueryResponse qresp,
ResultValue res) |
public static final String DOLLAR_DOLLAR
protected DTypeRegistry registry
protected FetchRunnerImpl fetchRunner
public RunnerImpl(FactoryService factorySvc, DBInterface dbInterface)
public DeliaGeneratePhase createGenerator()
RunnercreateGenerator in interface Runnerpublic InternalCompileState getCompileState()
RunnergetCompileState in interface Runnerpublic ExecutionState getExecutionState()
RunnergetExecutionState in interface Runnerpublic boolean init(ExecutionState ctx)
Runnerpublic TypeRunner createTypeRunner()
createTypeRunner in interface Runnerpublic ResultValue executeProgram(List<Exp> expL)
RunnerexecuteProgram in interface RunnerexpL - AST object to executepublic ResultValue executeOneStatement(Exp exp)
RunnerexecuteOneStatement in interface Runnerexp - AST object to executepublic ResultValue executeStatement(Exp exp)
public void runQueryFnsIfNeeded(QueryExp queryExp, QueryResponse qresp, ResultValue res)
public boolean exists(String varName)
Runnerpublic ResultValue getVar(String varName)
Runnerpublic DTypeRegistry getRegistry()
getRegistry in interface Runnerpublic List<DValue> lookupVar(String varName)
lookupVar in interface VarEvaluatorpublic String evalVarAsString(String varName, String typeName)
evalVarAsString in interface VarEvaluatorpublic SprigService getSprigSvc()
getSprigSvc in interface RunnerCopyright © 2020. All rights reserved.