All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.qlexpress4.runtime.QLambdaDefinitionEmpty Maven / Gradle / Ivy

package com.alibaba.qlexpress4.runtime;

import com.alibaba.qlexpress4.QLOptions;
import com.alibaba.qlexpress4.utils.PrintlnUtils;

import java.util.function.Consumer;

/**
 * Author: DQinYuan
 */
public class QLambdaDefinitionEmpty implements QLambdaDefinition {

    public static QLambdaDefinition INSTANCE = new QLambdaDefinitionEmpty();

    @Override
    public QLambda toLambda(QContext qContext, QLOptions qlOptions, boolean newEnv) {
        return QLambdaEmpty.INSTANCE;
    }

    @Override
    public void println(int depth, Consumer debug) {
        PrintlnUtils.printlnByCurDepth(depth, getName(), debug);
    }

    @Override
    public String getName() {
        return "EmptyLambdaDefinition";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy