com.ql.util.express.instruction.detail.InstructionLoadLambda Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of QLExpress Show documentation
Show all versions of QLExpress Show documentation
QLExpress is a powerful, lightweight, dynamic language for the Java platform aimed at improving developers’ productivity in different business scenes.
The newest version!
package com.ql.util.express.instruction.detail;
import java.util.List;
import com.ql.util.express.InstructionSet;
import com.ql.util.express.QLambda;
import com.ql.util.express.RunEnvironment;
import com.ql.util.express.instruction.OperateDataCacheManager;
/**
* 将一个 QLambda 加载到栈上
*/
public class InstructionLoadLambda extends Instruction {
private final InstructionSet lambdaSet;
public InstructionLoadLambda(InstructionSet lambdaSet) {
this.lambdaSet = lambdaSet;
}
@Override
public void execute(RunEnvironment environment, List errorList) {
environment.push(
OperateDataCacheManager.fetchOperateData(new QLambda(lambdaSet, environment, errorList), null)
);
environment.programPointAddOne();
}
@Override
public String toString() {
return "Load Lambda " + lambdaSet.toString() + "Lambda End";
}
}