| Constructor and Description |
|---|
QvmGlobalScope(ExpressContext externalVariable,
java.util.Map<java.lang.String,CustomFunction> externalFunction,
QLOptions qlOptions) |
| Modifier and Type | Method and Description |
|---|---|
void |
defineFunction(java.lang.String functionName,
CustomFunction function)
define local function in scope
|
void |
defineLocalSymbol(java.lang.String varName,
java.lang.Class<?> varClz,
java.lang.Object value)
define a symbol in local scope
|
CustomFunction |
getFunction(java.lang.String functionName)
get function or lambda define
|
java.util.Map<java.lang.String,CustomFunction> |
getFunctionTable()
get function table in this scope
|
QScope |
getParent() |
Value |
getSymbol(java.lang.String varName)
get assignable symbol variable by name
|
java.lang.Object |
getSymbolValue(java.lang.String varName)
get symbol variable value by name
|
QScope |
newScope() |
Value |
peek() |
Value |
pop()
pop one element on top of stack
|
Parameters |
pop(int number)
pop number elements on top of stack
|
void |
push(Value value)
push value on the top of stack
|
public QvmGlobalScope(ExpressContext externalVariable, java.util.Map<java.lang.String,CustomFunction> externalFunction, QLOptions qlOptions)
public Value getSymbol(java.lang.String varName)
QScopepublic java.lang.Object getSymbolValue(java.lang.String varName)
QScopegetSymbolValue in interface QScopevarName - variable namepublic void defineLocalSymbol(java.lang.String varName,
java.lang.Class<?> varClz,
java.lang.Object value)
QScopedefineLocalSymbol in interface QScopevarName - variable namevarClz - class of variablevalue - init valuepublic void defineFunction(java.lang.String functionName,
CustomFunction function)
QScopedefineFunction in interface QScopefunctionName - name of functionfunction - implement of functionpublic CustomFunction getFunction(java.lang.String functionName)
QScopegetFunction in interface QScopefunctionName - name of functionpublic java.util.Map<java.lang.String,CustomFunction> getFunctionTable()
QScopegetFunctionTable in interface QScopepublic void push(Value value)
QScopepublic Parameters pop(int number)
QScopepublic Value peek()
public QScope getParent()
Copyright © 2012-2025 Alibaba Group. All Rights Reserved.