public interface QScope
| 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
|
default 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
|
Value getSymbol(java.lang.String varName)
varName - variable namedefault java.lang.Object getSymbolValue(java.lang.String varName)
varName - variable namevoid defineLocalSymbol(java.lang.String varName,
java.lang.Class<?> varClz,
java.lang.Object value)
varName - variable namevarClz - class of variablevalue - init valuevoid defineFunction(java.lang.String functionName,
CustomFunction function)
functionName - name of functionfunction - implement of functionCustomFunction getFunction(java.lang.String functionName)
functionName - name of functionjava.util.Map<java.lang.String,CustomFunction> getFunctionTable()
void push(Value value)
value - pushed elementParameters pop(int number)
number - pop elements' numberValue pop()
Value peek()
QScope getParent()
QScope newScope()
Copyright © 2012-2025 Alibaba Group. All Rights Reserved.