| Class | Description |
|---|---|
| BreakContinueInstruction |
Operation: return break object and exit lambda
Input: 0
Output: 0
|
| CallConstInstruction |
Operation: call const lambda
Input: ${argNum}
Output: 1 const lambda result
|
| CallFunctionInstruction |
Operation: call ql function from function table
Input: ${argNum}
Output: 1 function result
Author: DQinYuan
|
| CallInstruction |
Operation: call a lambda with fixed number of arguments
Input: ${argNum} + 1
Output: 1, lambda return result
|
| CastInstruction |
Operation: force cast value to specified type
Input: 2 targetCls and value
Output: 1 casted value
|
| CheckTimeOutInstruction |
Operation: check if program timeout
Input: 0
Output: 0
|
| CloseScopeInstruction |
Operation: close scope
Input: 0
Output: 0
Author: DQinYuan
|
| ConstInstruction |
Operation: push constObj to stack
Input: 0
Output: 1
|
| DefineFunctionInstruction |
Operation: define function
Input: 0
Output: 0
|
| DefineLocalInstruction |
Operation: define a symbol in local scope
Input: 1 symbol init value
Output: 0
Author: DQinYuan
|
| ForEachInstruction |
Operation: process each element in iterable object on top of stack,
Input: 1
Output: 0
Author: DQinYuan
|
| ForInstruction |
Operation: traditional for loop
Input: 0
Output: 0
Author: DQinYuan
|
| GetFieldInstruction |
Operation: get specified field of object on the top of stack
Input: 1
Output: 1
|
| GetMethodInstruction |
Operation: get specified method of object on the top of stack
Input: 1
Output: 1
|
| IndexInstruction |
Operation: extract value with index, like a[0], m['a']
Input: 2, indexable object and index
Output: 1
|
| JumpIfInstruction |
Operation: if the element is ${expect}, jump to position, else execute next instruction as normal.
|
| JumpIfPopInstruction |
Operation: pop the top of stack, if the element is ${expect}, jump to position, else execute next instruction as normal.
|
| JumpInstruction |
Operation: jump to a position
Input: 0
Output: 0
Author: DQinYuan
|
| LoadInstruction |
Operation: load variable from local to global scope, create when not exist
Input: 0
Output: 1 left value of local variable
Author: DQinYuan
|
| LoadLambdaInstruction |
Operation: instantiate lambda definition on stack
Input: 0
Output: 1 lambda instance
Author: DQinYuan
|
| MethodInvokeInstruction |
Operation: invoke specified method of object on the top of stack
Input: ${argNum} + 1
Output: 1, method return value, null for void method
|
| MultiNewArrayInstruction |
new int[1][2][][]
Operation: new array with multi dims
Input: ${dims}
Output: 1
Author: DQinYuan
|
| NewArrayInstruction |
new int[] {1,2,3}
Operation: new array with init items
Input: ${length}
Output: 1
Author: DQinYuan
|
| NewFilledInstanceInstruction |
Operation: new a Map with top ${keys.length} stack element
Input: ${keys.length}
Output: 1
|
| NewInstanceInstruction |
Operation: new an object of specified class
Input: ${argNum} + 1
Output: 1
|
| NewListInstruction |
Operation: new a List with top ${initLength} stack element
Input: ${initLength}
Output: 1
|
| NewMapInstruction |
Operation: new a Map with top ${keys.length} stack element
Input: ${keys.length}
Output: 1
|
| NewScopeInstruction |
Operation: new scope
Input: 0
Output: 0
Author: DQinYuan
|
| OperatorInstruction |
Operation: do middle operator +=,>>,>>>,<<,.
|
| PopInstruction |
Operation: pop top element
Input: 1
Output: 0
|
| QLInstruction |
Instruction Specification:
Operation: What does it do?
Input: How many stack element it consumes? and their means
Output: How many stack element it push back? and their means
|
| ReturnInstruction |
Operation: return top element and exit lambda
Input: 1
Output: 0
|
| SliceInstruction |
Operation: slice array or list, like a[2:4], a[4:-1], a[:4], a[5:], a[:]
Input: 0-2
Output: 1
|
| SpreadGetFieldInstruction |
Operation: get field of each object in the list
Input: 1
Output: 1, a list composed of field values
Author: DQinYuan
|
| SpreadMethodInvokeInstruction |
Operation: Invoke specified method of each object in the list
Input: ${argNum} + 1
Output: 1, a list composed of return values from methods.
|
| StringJoinInstruction |
Operation: concat n string on the top of stack
Input: ${n}
Output: concat result
Author: DQinYuan
|
| ThrowInstruction |
Operation: throw top element on the stack
Input: 1
Output: 0
|
| TraceEvaludatedInstruction |
Operation: no op, only for marking evaludated as true
Input: 0
Output: 0
Author: DQinYuan
|
| TracePeekInstruction |
Operation: no op, only for tracing peek value of stack
Input: 0
Output: 0
Author: DQinYuan
|
| TryCatchInstruction |
Operation: try and catch throw element
Input: 0
Output: 1
Author: DQinYuan
|
| UnaryInstruction |
Operation: do unary operator like, ++,--,!,~
Input: 1
Output: 1, unary result
Author: DQinYuan
|
| WhileInstruction |
Operation: while (condition) do body
Input: 0
Output: 0
|
| Enum | Description |
|---|---|
| SliceInstruction.Mode |
Copyright © 2012-2025 Alibaba Group. All Rights Reserved.