io.github.wycst.wast.common.expression.compile.CompilerExprParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wast Show documentation
Show all versions of wast Show documentation
Wast is a high-performance Java toolset library package that includes JSON, YAML, CSV, HttpClient, JDBC and EL engines
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;
}
}