| Constructor and Description |
|---|
DelegateQContext(QRuntime qRuntime,
QScope qScope) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
attachment() |
void |
closeScope() |
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
|
QScope |
getCurrentScope() |
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() |
ReflectLoader |
getReflectLoader() |
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
|
QTraces |
getTraces() |
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
|
long |
scriptStartTimeStamp()
get script start time
|
public long scriptStartTimeStamp()
QRuntimescriptStartTimeStamp in interface QRuntimepublic java.util.Map<java.lang.String,java.lang.Object> attachment()
attachment in interface QRuntimepublic ReflectLoader getReflectLoader()
getReflectLoader in interface QRuntimepublic 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()
public QScope getCurrentScope()
getCurrentScope in interface QContextpublic QScope newScope()
public void closeScope()
closeScope in interface QContextCopyright © 2012-2025 Alibaba Group. All Rights Reserved.