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

io.github.wycst.wast.common.expression.compile.CompilerExprParser Maven / Gradle / Ivy

Go to download

Wast is a high-performance Java toolset library package that includes JSON, YAML, CSV, HttpClient, JDBC and EL engines

There is a newer version: 0.0.16
Show newest version
package io.github.wycst.wast.common.expression.compile;

import io.github.wycst.wast.common.expression.ExprEvaluator;
import io.github.wycst.wast.common.expression.ExprParser;
import io.github.wycst.wast.common.expression.invoker.Invoker;

/**
 * @Author: wangy
 * @Date: 2021/11/20 12:30
 * @Description:
 */
public final class CompilerExprParser extends ExprParser {

    CompilerExprParser(String exprSource) {
        super(exprSource);
    }

    @Override
    protected ExprEvaluator createExprEvaluator() {
        return new CompilerExprEvaluator();
    }

    /**
     * 生成表达式代码
     *
     * @return
     */
    String code() {
        return getEvaluator().code();
    }

    int getVariableCount() {
        return variableCount;
    }

    Invoker getChainValues() {
        return chainValues;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy